What this CSS loader generator does
Most static snippet collections hand you fixed-size spinners with hardcoded hex colors, forcing you to recalculate border widths, pseudo-element offsets, and staggered animation delays every time a component needs a smaller button indicator or a brand-matched page loader. This free CSS loader generator runs locally inside your browser with no sign-up and no uploads, letting you dial in exact dimensions, stroke weight, speed, and palette live.
Every generated indicator uses pure CSS and minimal accessible HTML markup with role="status" and aria-label="Loading". Because there are no external icon packages, animated GIFs, or runtime scripts, the loader renders crisply at any Retina density and adds only a few hundred bytes to your stylesheet.
Whether you need a compact 20px button spinner, a 48px card placeholder, or a 96px full-screen transition indicator, every geometry calculation updates proportionally as you drag the sliders.
How to customize and export a CSS loading animation
- Pick one of the 6 styles under Loader style: Spinner, Dual Ring, Dots, Bars, Pulse, or Orbit.
- Drag Size between 20px and 96px to match the footprint of a button, table row, card, or splash overlay.
- Adjust Thickness between 2px and 12px to tune ring border width, bar width, or orbit track weight.
- Set Cycle speed from 0.4s to 3.0s to speed up subtle button feedback or slow down ambient pulse states.
- Select a swatch under Design system colors or fine-tune Accent color with the native color input so the indicator matches your product tokens.
- Toggle Code output between CSS (stylesheet with an HTML comment hint) and HTML (ready-to-drop markup plus inline style block), then click Copy code.
Loader variants, bounds, and markup specifications
All numeric parameters are sanitized and clamped automatically so generated CSS never produces negative dimensions or broken keyframe delays.
- Supported styles (6): Spinner (single top-arc border ring), Dual Ring (opposing top/bottom arcs with eased rotation), Dots (3 staggered bouncing dots), Bars (4 vertical equalizer bars), Pulse (expanding fade circle), and Orbit (track ring with orbiting satellite dot).
- Size bounds: 20px to 96px (default 48px); Dots scale dot diameter proportionally to 24% of size (minimum 6px), and Orbit scales its satellite to 22% of size.
- Thickness bounds: 2px to 12px (default 5px); Bars width scales cleanly from thickness with balanced flex gap spacing.
- Cycle speed bounds: 0.4s to 3.0s in 0.1s steps (default 0.9s); staggered delays for Dots (0.16× and 0.32×) and Bars (0.12×, 0.24×, 0.36×) recalculate automatically whenever speed changes.
- Accessible HTML structure: uses <div class="u-loader" role="status" aria-label="Loading"> with zero nested nodes for ring/pulse/orbit, 3 spans for Dots, and 4 spans for Bars.
- Export formats: CSS mode outputs clean .u-loader and @keyframes rules with an HTML comment; HTML mode outputs ready-to-paste markup followed by a <style> block.
Tips for choosing the right loading indicator
- Use a 20px–24px Spinner with 2px–3px thickness inside submit buttons so loading feedback does not resize the button height.
- Use Dots or Bars for chat replies, streaming lists, or audio/media fetches where horizontal rhythm feels calmer than a spinning wheel.
- Keep Cycle speed around 0.7s to 1.1s for Spinner and Dual Ring; faster than 0.5s can look frantic while slower than 2.0s may appear frozen.
- Ensure sufficient contrast between Accent color and your surface background, especially on tinted cards or dark themes.
- Pair the role="status" container with visually hidden localized text or aria-live updates when loading happens asynchronously inside forms.
Common frontend and product design use cases
Web applications need reliable loading feedback across login buttons, table filters, payment confirmations, file processors, and lazy-loaded dashboard panels. Keeping a single lightweight CSS class per indicator avoids bundling third-party animation dependencies just to show a busy state.
Design system engineers also use this generator to standardize small, medium, and large loader tokens across product surfaces. Because every dimension and stagger delay derives from explicit pixel and second values, copying CSS variables or inline component styles takes seconds.
Static landing pages, email-preview sandboxes, and embedded widgets particularly benefit from the HTML mode, which gives you a complete drop-in loader without configuring external stylesheets or SVG sprite sheets.
When building multi-step wizards, upload queues, or live search panels, pairing a lightweight CSS spinner with a subtle status message helps users distinguish between an active background fetch and a stalled form. Because each indicator runs on CSS transforms and opacity rather than JavaScript timers, main-thread work such as JSON parsing or client-side canvas rendering will not freeze the loading animation.
Teams shipping white-label portals or themeable component kits can also swap the generated border or fill color with a CSS custom property like var(--accent) right after copying, letting one compact keyframe definition adapt seamlessly to light mode, dark mode, and brand accents.
Match loading indicators to a UINice design system
A mismatched generic gray spinner immediately feels bolted onto an otherwise cohesive interface. Every color swatch inside this tool comes directly from a curated UINice design system, pairing its primary brand accent with its native background surface so you can verify legibility right away.
Below the swatch grid, the active design system row displays the system name and three signature color dots. Building your loading states from the same UINice palette as your buttons, badges, and cards keeps transient states seamlessly integrated into the rest of your product.
Questions
Do these CSS loaders require JavaScript or external libraries?
No. Every style uses standard HTML elements and pure CSS @keyframes animations with zero JavaScript, zero icon fonts, and zero external dependencies.
Why do Dots and Bars include empty span elements?
The 3 spans in Dots and 4 spans in Bars allow each dot or bar to run staggered animation-delay offsets cleanly without duplicating pseudo-elements or relying on SVG scripts.
Can I resize a generated loader for small buttons?
Yes. Set Size down to 20px and Thickness to 2px or 3px to generate a crisp inline button spinner that stays aligned with 14px–16px button text.
Is any of my configuration uploaded when using this tool?
No. All live previews and code generation run locally inside your browser with no account required and no data transmitted.