How to use the CSS Loader Generator
- Choose a loader style: ring, dual ring, bouncing dots, bars, pulse, orbit, progress bar or grid.
- Set the color, size, speed and line thickness. The preview background is only for checking contrast.
- Copy the HTML and the CSS. Both use the class name
loader; rename it if it clashes with your styles.
Tips
- The markup includes
role="status"and an accessible label, so screen readers announce that something is loading. - Show a loader only when a wait is longer than about half a second; shorter waits feel faster without one.
- For content that loads in place, a skeleton loader often feels quicker than a spinner.
Browse ready-made loader and spinner components for more designs.
Everything runs in your browser: nothing you type or paste is sent to a server.