Swell
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-swellAbout this component
A rounded tank in which blue water rises and falls, with two layers of waves rolling across its surface in opposite directions.
Triggers
- Loop
- Continuous
- Fill
Techniques
- Keyframes
- Transform only
- Radial gradient
- Gradient
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
The root has role="status" and aria-label "Loading"; the water is aria-hidden.
Reduced motion
The animations stop and the tank rests a little over half full.
Use it in anything you build, commercial and client work included. Licence