Command Palette

Search for a command to run...

1.2k
Blog
PreviousNext

Apple Hello Effect

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

Loading...
import { AppleHelloVietnameseEffect } from "@/components/ncdai/apple-hello-effect";
 
export function VietnameseDemo() {
  return <AppleHelloVietnameseEffect />;
}
Loading...
import { AppleHelloEnglishEffect } from "@/components/ncdai/apple-hello-effect";
 
export function EnglishDemo() {
  return <AppleHelloEnglishEffect />;
}

Installation

pnpm dlx shadcn add @ncdai/apple-hello-effect

Usage

import {
  AppleHelloVietnameseEffect,
  AppleHelloEnglishEffect,
} from "@/components/ncdai/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