icheernoom / loaders.css

Delightful, performance-focused pure css loading animations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loaders.css

Delightful and performance-focused pure css loading animations.

What is this?

See the demo

A collection of loading animations written entirely in css. Each animation is limited to a small subset of css properties in order to avoid expensive painting and layout calculations.

I've posted links below to some fantastic articles that go into this in a lot more detail.

Install

bower install loaders.css

Usage

Standard
  • Include loaders.min.css
  • Create an element with the .loader-inner class and the name of the animation class (e.g. <div class="loader-inner ball-pulse"></div>)
  • Insert the appropriate number of <div>s into that element
jQuery (optional)
  • Include loaders.min.css, jQuery, and loaders.js
  • Create an element with the .loader-inner class and the name of the animation class (e.g. <div class="loader-inner ball-pulse"></div>)
  • Enjoy

Contributing

Pull requests are welcome! Create another file in src/animations and load it in src/loader.scss.

In a separate tab run gulp --require coffee-script. Open demo/demo.html in a browser to see your animation running.

Further research

Suggested use

Wrap the surrounding container in display:flex and center the animation.

Licence

MIT

About

Delightful, performance-focused pure css loading animations.


Languages

Language:CSS 87.0%Language:HTML 10.0%Language:JavaScript 1.8%Language:CoffeeScript 1.1%