Flashstep
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initToggleFlashstep(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/toggle-flashstepAbout this component
A volt switch that flash-steps: switching on, the orb blinks across the track leaving afterimages, a sonic boom cracks at the landing and the track runs with current; off, it dashes back and the power snuffs out in smoke.
Triggers
- Click
- State change
- Glow
Techniques
- Keyframes
- CSS variables
- requestAnimationFrame
- Transform only
Difficulty
Advanced
Accessibility
Keyboard and screen readers
A native checkbox with role="switch" named "Turbo"; focus outlines the track.
Reduced motion
It switches without effects.
Use it in anything you build, commercial and client work included. Licence