Command Palette

Search for a command to run...

Writing Effect inspired by Apple

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

xin chào
hello

Installation

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

Usage

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

Props

PropTypeDefaultDescription
speednumber1A multiplier that affects the animation duration. Higher values make the animation slower.
onAnimationComplete() => voidundefinedCallback function triggered when the animation completes.

Acknowledgments

References