Motion Blocks

Text

Text Loop

Cycles through an array of text strings with a blurred vertical slide transition. Framework-agnostic Custom Element.

  • lit Preview of https://lit.devLitSimple. Fast. Web Components.
  • gsap Preview of https://gsap.comGSAPAnimate anything. Silky-smooth performance.

Preview

We

Cycles through an array of strings with a blurred vertical slide.
Attributes

Installation

pnpm dlx motion-blocks add text-loop

Usage

---import "@/components/motion-blocks/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