Text
Text Loop
Cycles through an array of text strings with a blurred vertical slide transition. Framework-agnostic Custom Element.
- lit
- gsap
Preview
We
Cycles through an array of strings with a blurred vertical slide.
Attributes
Installation
pnpm dlx shadcn@latest add https://motion-kit-astro.vercel.app/r/text-loop.json Usage
---
import "@/components/motion-kit/text-loop-element.ts";
---
<motion-text-loop
texts='["Design","Develop","Deploy"]'
interval="2000"
></motion-text-loop> API Reference
| Attribute | Type | Default |
|---|---|---|
texts Array of strings to cycle through. Pass as a JSON array string. | string[] | [] |
interval Milliseconds between transitions. | number | 2000 |