Loki Text Effect

The iconic text animation from the Loki series intro.

ReactHTML
React
Loading...

Installation

pnpm dlx shadcn@latest add https://atlasui.dev/r/loki-text-effect.json

Usage

import { LokiTextEffect } from "@/components/(react)/loki-text-effect";
<LokiTextEffect text="Loki" />

Props

PropTypeDefaultRequiredDescription
textstring-trueThe text to display and animate
velocityFontnumber800falseInterval in ms for how often the font changes
velocityMovenumber1800falseInterval in ms for how often the position jitter is updated
classNamestring-falseOptional classnames for according to match your setup