Marble
Markup where the component goes, CSS in your stylesheet. No JavaScript.
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-marbleAbout this component
A clear glass marble with a point of coloured light circling it: as the light passes behind, the marble shows it upside down and moving the wrong way, the way a ball lens really does, and focuses a small spot of its colour onto the floor.
Triggers
- Loop
- Continuous
- Glow
Techniques
- Keyframes
- @property
- Radial gradient
- Filter
Difficulty
Advanced
Accessibility
Keyboard and screen readers
role="status" with aria-label "Loading"; the drawing is decorative.
Reduced motion
Every animation pauses on its current frame.
Use it in anything you build, commercial and client work included. Licence