@sekei
Canvas effects for React, copied into your project as source. Starts with ordered dither: fire, lightning, sonar rings, a light beam, a sloshing fluid, rain and snow.
Install this registry
npx shadcn@latest add https://www.sekei.design/registry/registry.json pnpm dlx shadcn@latest add https://www.sekei.design/registry/registry.json bunx shadcn@latest add https://www.sekei.design/registry/registry.json curl -s https://www.sekei.design/registry/registry.json Components
12 totalTracks the prefers-reduced-motion media query without tripping hydration.
npx shadcn@latest add https://www.sekei.design/registry/use-prefers-reduced-motion.json The frame loop, the Surface and FxEffect contracts, the useFx and useFxEngine hooks, seeded RNG and the colour helpers every renderer and effect builds on.
npx shadcn@latest add https://www.sekei.design/registry/shad-fx-engine.json DitherCanvas: fills its positioned parent with a pixelated canvas that draws any effect as Bayer-dithered cells.
npx shadcn@latest add https://www.sekei.design/registry/shad-fx-dither.json AsciiCanvas: fills its positioned parent with a canvas that draws any effect as coloured glyphs, in the system monospace or a font you pass.
npx shadcn@latest add https://www.sekei.design/registry/shad-fx-ascii.json Rising flame front with embers.
npx shadcn@latest add https://www.sekei.design/registry/shad-fx-fire.json Concentric rings pulsing out from an anchor.
npx shadcn@latest add https://www.sekei.design/registry/shad-fx-rings.json Directional beam with drifting motes.
npx shadcn@latest add https://www.sekei.design/registry/shad-fx-beam.json Intermittent lightning arcs on a randomised interval.
npx shadcn@latest add https://www.sekei.design/registry/shad-fx-bolt.json Sloshing liquid level with rising bubbles.
npx shadcn@latest add https://www.sekei.design/registry/shad-fx-fluid.json Slanted streaks of rain, splashing on the floor.
npx shadcn@latest add https://www.sekei.design/registry/shad-fx-rain.json Drifting flakes settling into a drift along the floor.
npx shadcn@latest add https://www.sekei.design/registry/shad-fx-snow.json The dither and ASCII renderers, every effect, and a barrel that re-exports them.
npx shadcn@latest add https://www.sekei.design/registry/shad-fx.json