{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "apple-hello-effect", "title": "Apple Hello Effect", "author": "ncdai ", "description": "SVG writing animation inspired by Apple’s Hello screen.", "dependencies": [ "motion" ], "files": [ { "path": "src/registry/components/apple-hello-effect/apple-hello-effect-english.tsx", "content": "\"use client\"\n\nimport type { TargetAndTransition } from \"motion/react\"\nimport { motion } from \"motion/react\"\nimport type { ComponentProps } from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst initialProps: TargetAndTransition = {\n pathLength: 0,\n opacity: 0,\n}\n\nconst animateProps: TargetAndTransition = {\n pathLength: 1,\n opacity: 1,\n}\n\nexport type AppleHelloEffectEnglishProps = Omit<\n ComponentProps,\n \"durationScale\" | \"onAnimationComplete\"\n> & {\n /**\n * Scales the duration and delay of the handwriting animation.\n * Values below 1 speed up, values above 1 slow down.\n * @defaultValue 1\n */\n durationScale?: number\n /** Called when the full handwriting animation completes. */\n onAnimationComplete?: () => void\n}\n\nexport function AppleHelloEffectEnglish({\n className,\n durationScale = 1,\n onAnimationComplete,\n ...props\n}: AppleHelloEffectEnglishProps) {\n const calc = (x: number) => x * durationScale\n\n return (\n \n hello\n\n {/* h1 */}\n \n\n {/* h2, ello */}\n \n \n )\n}\n", "type": "registry:component" } ], "docs": "https://chanhdai.com/components/apple-hello-effect", "type": "registry:component" }