A few butterflies drawn as ASCII glyphs, flapping on wandering paths and landing now and then.
Butterflies drift slowly from one side of their container to the other, beating their wings up and down and turning to face where they go. They never leave the container. Now and then one lands and slowly opens and closes its wings. Move the pointer near one and it flits away. Click to scatter the ones close by. Honors prefers-reduced-motion.
npx shadcn@latest add ikislay/pixel-ui/ascii-butterfliesimport { AsciiButterflies } from "@/components/ui/ascii-butterflies"export function Demo() {return <AsciiButterflies variant="color" className="h-96 w-full rounded-2xl" />}
1// Loading…
Options you can pass to customize this component.
variantcolormonoColor mixes blue, teal, pink, yellow and orange wings. Mono uses greys only. Both follow your light or dark theme.
countnumberHow many butterflies fly at once. Keep it small so the scene stays calm.
Most components here are recreations of great work from around the web. I don't claim to be the original creator - this is my attempt to reverse-engineer, replicate, and often add a few extra features. I've tried to credit everyone; if I missed someone, let me know.
1
What should we build today?