Flaps
Markup where the component goes, CSS in your stylesheet. No JavaScript.
HTML
CSS
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/loader-flapsAbout this component
Four tiles on a rail flip over one after another, each showing a second colour on its back, then flip on round to the first.
Triggers
- Loop
- 3D
- Delay stagger
Techniques
- preserve-3d
- Perspective
- Keyframes
- Stagger
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
The root has role="status" and aria-label "Loading"; the tiles are aria-hidden.
Reduced motion
The animations stop and the tiles rest with the first two flipped.
Use it in anything you build, commercial and client work included. Licence