Chánh Đại's avatar
Chánh Đại 

Writing Effect inspired by Apple

Create a "Xin chào" and "Hello" writing effect inspired by Apple using Motion for React.

xin chào

Installation

npx shadcn@latest add https://chanhdai.com/r/apple-hello-effect.json

Usage

import {
  AppleHelloVietnameseEffect,
  AppleHelloEnglishEffect,
} from "@/components/apple-hello-effect";
<AppleHelloVietnameseEffect />
<AppleHelloEnglishEffect />

Props

PropTypeDefaultDescription
speednumber1

A multiplier that affects the animation duration. Higher values make the animation slower.

onAnimationComplete() => voidundefined

Callback function triggered when the animation completes.

Acknowledgments

References