About
A text component that animates the font variation settings of letters in a random order. Works only with variable fonts.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Variable Font Hover By Random Letter to your project and fits it to your theme.
Code
How Variable Font Hover By Random Letter is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { VariableFontHoverByRandomLetter } from "@/components/ui/variable-font-hover-by-random-letter"
function Preview() {
return (
<div className="w-full h-full rounded-lg items-center justify-center font-overusedGrotesk p-24 bg-gradient-to-br text-[#3bb6ab] ">
<div className="w-full h-full items-center justify-center flex">
<VariableFontHoverByRandomLetter
label="Let's Go!"
staggerDuration={0.03}
className="rounded-full items-center flex justify-center cursor-pointer px-8 py-5 align-text-top text-4xl sm:text-5xl md:text-7xl"
fromFontVariationSettings="'wght' 400, 'slnt' 0"
toFontVariationSettings="'wght' 900, 'slnt' 0"
/>
</div>
</div>
)
}
export { Preview }















