A collection of loading spinners animated with CSS

Overview

Single Element CSS Spinners

This is a collection of loading spinners animated with CSS.

Each spinner consists of a single div with a class of loader and content text of "Loading...". The text is for screen readers and can be used as a fallback state for older browsers.

The aim of this project was to create a set of minimal loading spinners that are visually appealing and also convey their intended meaning.

A strict limit of one element per loader (not including pseudo-elements) was placed on this project based on the belief that something as simple as a loader doesn't deserve more.

Each loader is given a font size in pixels and all other sizes are in ems so to change the size of a loader, just adjust the font-size.

Demo

css-loaders-screenshot

Check it live.

Browser Support

IE Chrome Firefox Opera Safari
IE 10+ Chrome 4.0+ Firefox 16.0+ Opera 15.0+ Safari 4.0+

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :)

History

For detailed changelog, check Releases.

License

MIT License

Comments
  • How to resize the loaders

    How to resize the loaders

    Sorry if it's a noob question but I am kinda confused here, I tried changing the container size, the loader div's width/height, the font-size. nothing seems to work. Any help would be appreciated.

    opened by steelbrain 7
  • Improvement on loader 6

    Improvement on loader 6

    Improvement on circular path (location computed with sin & cos) and more/different steps to have a better transformation (closer to a real circle), as asked in #11. I only made changes in the Less file (.css and .html are generated). Feel free to tell me if it's not suitable.

    opened by OxyDesign 7
  • Change spinner colour

    Change spinner colour

    Not really an issue, but a suggestion:

    It would be great if there was a way to change the color of the spinning element directly from the css-loaders website. I have been doing it manually, and sometimes it isn't as straightforward as replacing the color codes especially for the spinners with rgba colors.

    Otherwise, great tool.

    opened by Martin-Nyaga 2
  • Can I use it with white background page?

    Can I use it with white background page?

    Thanks for the awesome project!

    My pages are white background. The loader becomes transparent on my site.

    How to use the loader with white background page?

    Thanks!

    opened by howtomakeaturn 2
  • Fix positioning of overlays in load2 to get rid of ghost lines.

    Fix positioning of overlays in load2 to get rid of ghost lines.

    There is a subtle displacement of the overlays in load2 which results in “ghost lines” where the circle is not completely covered. This commit fixes that issue by centering the overlays and there rotation origins.

    before after

    opened by smnscp 1
  • Wrong behaviour on load6

    Wrong behaviour on load6

    When the loader begin its cycle, the last 2-3 circles go back when they should start from point 0 (the top).

    image: http://imageshack.com/a/img536/999/QU9wjA.jpg Also, the ark is wrong and it doesnt follow the circle motion which make this particular loader look weird.

    opened by xavortm 1
  • Different size spinners?

    Different size spinners?

    I haven't invested too much effort into this.

    After changing some of the sizing in the css I haven't had any success rendering a spinner at a smaller size (say, ~2em)

    any thoughts?

    opened by iamwhitebox 0
  • How can I contribute to the project.

    How can I contribute to the project.

    I loved this project and I think I should also contribute to this project.

    But I am having trouble in that, I got where to add the loader's CSS that is in the sass folder, css folder and less folder. But I can't find where to add the loader's HTML. 😓

    Please help me to contribute to this project or better you can add a CONTRIBUTING.md file.

    That makes sense. Hope it heps. :+1:

    opened by saviomartin 2
  • Fix switching same colors

    Fix switching same colors

    Note: This suggestion is for the website (generator) and not the repository here.

    Hi Luke, I've been using your loaders lately, it's a nice light spinner, I used the website for generating my colors for the loader 3, in my case I did choose the white background and black foreground which triggered a problem and lead me to try to fix the output CSS manually because I got everything in black, and I fix it, I looked over your main.js file to try to find the problem and here's it. The issue comes from replacing and specifically from switching between the same initial colors here's an example. Starting from the initial colors (BG: green, FG: white), choose a white background at this point the output has everything in white. When choosing another color on the white foreground the script will try to replace the old foreground (white) with the chosen color (XYZ) which makes the script replace everything to XYZ. The solution that I found is not optimal but simple: using different formats for both colors. eg: if you're changing the BG, we will make sure we have a different format from the FG (BG: #000000FF and the FG: #00000) so when we are changing the colors related to the BG(#000000FF) we will not replace the FG too. I hope that the example is clear, don't hesitate to text me for more details.

    The second problem comes from my solution, let's say we have the BG on #000000 and the FG is on #000000FF and we want to replace all the #000000 to #FFFFFF which will make everything in white again, the solution I suggested is to look for "the whitespace" and the ";" too to have a precise replacement pattern.

    Thank you so much for this helpful spinner

    opened by HatimLagzar 0
  • [Suggestion] document loader with full-screen overlay

    [Suggestion] document loader with full-screen overlay

    beautiful loaders!

    for people like me who suck at css it would be nice to have documentation of how to use the loaders with a full-screen overlay with adjustable overlay background opacity. i could only come up with the following code (opaque background), still can't figure out how to center the loader.

    .load-container {
      position: fixed;
      display: block;
      z-index: 999;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: $loader-background-color;
    }
    
    .loader {
      z-index: 1001;
    }
    
    opened by derekphilipau 1
Owner
Luke Haas
Luke Haas
Buttons with built-in loading indicators.

Ladda Buttons with built-in loading indicators, effectively bridging the gap between action and feedback. Check out the demo page. Installation npm in

Hakim El Hattab 7.9k Jan 3, 2023
Create cool animated SVG spinners, loaders and other looped animations in seconds

SVG Circus SVG Circus enables you to create cool animated SVG spinners, loaders and other looped animations in seconds. Developing To run a local SVG

Alex Kaul 301 Dec 24, 2022
A collection of loading indicators animated with CSS

SpinKit Simple loading spinners animated with CSS. See demo. SpinKit only uses (transform and opacity) CSS animations to create smooth and easily cust

Tobias Ahlin 19.1k Jan 3, 2023
fakeLoader.js is a lightweight jQuery plugin that helps you create an animated spinner with a fullscreen loading mask to simulate the page preloading effect.

What is fakeLoader.js fakeLoader.js is a lightweight jQuery plugin that helps you create an animated spinner with a fullscreen loading mask to simulat

João Pereira 721 Dec 6, 2022
Loading effects for assets including some built in animated reveals

Asset loading effects This is a library to show the loading progress of given assets and reveal them using various animations. Please give feedback, r

Zach Saucier 97 Dec 8, 2022
fakeLoader.js is a lightweight jQuery plugin that helps you create an animated spinner with a fullscreen loading mask to simulate the page preloading effect.

What is fakeLoader.js fakeLoader.js is a lightweight jQuery plugin that helps you create an animated spinner with a fullscreen loading mask to simulat

João Pereira 721 Dec 6, 2022
Fast and lightweight dependency-free vanilla JavaScript polyfill for native lazy loading / the awesome loading='lazy'-attribute.

loading="lazy" attribute polyfill Fast and lightweight vanilla JavaScript polyfill for native lazy loading, meaning the behaviour to load elements rig

Maximilian Franzke 571 Dec 30, 2022
Collection of Animated 60 FPS TabBar Component's based on React Navigation.

React Navigation TabBar Collection Collection of Animated 60 FPS TabBar Components based on React Navigation. Features 60 FPS Animation Beautiful TabB

Mikalyh 22 Dec 9, 2022
A simple and easy jQuery plugin for CSS animated page transitions.

Animsition A simple and easy jQuery plugin for CSS animated page transitions. Demo & Installation http://git.blivesta.com/animsition/ Development Inst

Yasuyuki Enomoto 3.8k Dec 17, 2022
3D (animated) cube using only CSS (Less), originally used by LeanCloud (aka. AVOS Cloud)

cube.less 3D (animated) cube using only CSS (LESS). Demo See this demo page. There's also a live production site (WIP) using these cubes. Install $ bo

Tunghsiao Liu 54 Nov 14, 2022
Pure CSS animated 3D Super Mario Icon

Pure CSS Super Mario This is the transferred source of a little sideproject I did in 2010. I initially did this without any CSS preprocessor and event

Andreas Jacob 14 Apr 15, 2021
CSS loading animations with minimal effort!

Whirl CSS loading animations with minimal effort! whirl is a curation of CSS loading animations(whirls! ?? ). It started as a drop in CSS file to get

Jhey Tompkins 1.4k Jan 4, 2023
🔮 CSS loading animations made by single element.

Three Dots The project is a set of CSS loading animations created with three dots which made by just single element. I think the project can not only

Zongbin 1.2k Dec 29, 2022
Pure css cross-browser loading animations.

[ArtWorx] xLoader Pure css cross-browser loading animations. xLoader is part of the ArtWorx collection. Most of the loaders made by community, You can

Anas Tawfik 21 Nov 15, 2021
Fallback JS - JavaScript library for dynamically loading CSS and JS files

Fallback JS - JavaScript library for dynamically loading CSS and JS files. Also provides the ability to load multiple files from a CDN with multiple fallback options and shimming!

Dolox Inc. 311 Nov 13, 2022
Delightful, performance-focused pure css loading animations.

Loaders.css Delightful and performance-focused pure css loading animations. What is this? See the demo A collection of loading animations written enti

Connor Atherton 10.2k Jan 4, 2023
Simple and flexible, css only, content placeholder loading animation.

Placeholder loading Simple and flexible, css only, content placeholder loading animation. Demo https://zalog.github.io/placeholder-loading/ Take a loo

Catalin Zalog 1.4k Dec 30, 2022