CSS loading animation generator
Generate CSS loading animations: spin ring, dual ring, bouncing dots, bars, pulse, ripple, skeleton, dot chase, square flip, progress bar, orbit and grid fade. Tunable size, colors and speed, complete @keyframes CSS plus an HTML snippet, with a live preview.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Animation
The classic single ring: neutral border with a colored top edge
Colors accept hex only (#rgb / #rrggbb / #rrggbbaa); the background also accepts transparent.
Preview
The preview plays the generated animation live as you change the options.
CSS code
Complete with @keyframes, ready to paste into a stylesheet.
@keyframes uk-spin-ring { to { transform: rotate(360deg); } }
.uk-loader-spin-ring {
width: 48px;
height: 48px;
border: 6px solid #e5e7eb;
border-top-color: #2563eb;
border-radius: 50%;
animation: uk-spin-ring 1s linear infinite;
}HTML snippet
Drop the snippet into your page and include the CSS above.
<div class="uk-loader uk-loader-spin-ring"></div>
What this tool does
- Add a loading placeholder to a page: pick a type, tune size and colors, copy the CSS and HTML
- Compare 12 common animations (spin ring, dual ring, bouncing dots, bars, pulse, ripple, skeleton, dot chase, square flip, progress bar, orbit, grid fade) side by side
- The preview really plays the generated animation, so you can tune parameters instead of guessing in an editor
Example
Input
Animation: Spin ring · size 48px · color #2563eb · background #e5e7eb · speed 1s
Output
@keyframes uk-spin-ring { to { transform: rotate(360deg); } }
.uk-loader-spin-ring {
width: 48px;
height: 48px;
border: 6px solid #e5e7eb;
border-top-color: #2563eb;
border-radius: 50%;
animation: uk-spin-ring 1s linear infinite;
}This is the exact output; the matching HTML snippet is <div class="uk-loader uk-loader-spin-ring"></div>.
Frequently asked questions
How many animations are available?
Twelve: spin ring, dual ring, bouncing dots, bars, pulse, ripple, skeleton, dot chase, square flip, progress bar, orbit and grid fade. Each one uses its own @keyframes name (uk-<animation>), so several can coexist on the same page.
Do size, color and speed really end up in the CSS?
Yes. Size drives width/height plus border or dot thickness; the primary and background colors appear in border, background or gradient values; speed is the duration of one cycle, scaled proportionally for some animations (skeleton ×1.4, square flip ×1.2, grid fade ×1.2), so an input of 1s becomes 1.4s / 1.2s there. Colors are hex only; the background also accepts transparent.
Do the generated styles need vendor prefixes?
No. The code only uses standard @keyframes, transform, border-radius, flex/grid and background-position animation, all natively supported by Chrome, Edge, Safari and Firefox. Old browsers such as IE do not support CSS animations at all and need a GIF fallback.
How does the preview run, and does it match the copied code?
The preview injects the same generated CSS into a <style> element on this page, so what you see is exactly the code you copy — nothing extra is added. The only caveat is the class name: if your page already uses it, change the base class (the final class is "<base>-<animation>").
Keywords:css loaderspinnerkeyframes