Skip to content

loadingio/loading.css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loading.css

loading.css preview

60+ Handcrafted CSS animations that are seamless repeatable. All animations in loading.css are designed for both one time and infinitely played. Online demo could be found here (Loading.css - 50+ Seamless Repeatable CSS Animation · Loading.io ).

Loading.css is used in building GIF, APNG and animated SVG in loading.io. Check following links to see how it works:

You can find more about animation generation in loading.io.

Usage

  1. download and include loading.css:
    <link rel="stylesheet" type="text/css" href="?url=https%3A%2F%2Fgithub.com%2Floadingio%2Floading.css%2Floading.css"?url=https%3A%2F%2Fgithub.com%2F%26gt%3B%0A%3C%2Fcode%3E%3C%2Fpre%3E%3C%2Fdiv%3E%0A%3Cp+dir%3D"auto">you an use a CDN, such as, from jsDelivr:

    <link rel="stylesheet" type="text/css" href="?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Floadingio%2Floading.css%40v2.0.0%2Fdist%2Floading.min.css"?url=https%3A%2F%2Fgithub.com%2F%26gt%3B%0A%3C%2Fcode%3E%3C%2Fpre%3E%3C%2Fdiv%3E%0A%3Col+start%3D"2" dir="auto">
  • Check the loading.css animation gallery for the animations you want to use. For example, say you want to use the spin animation

  • Use the name as a CSS class prefixed with ld on the element you want to animate:

  •     <div class="ld ld-spin"></div>
    
    1. For more information, check out loading.css animation documentation.

    Notice

    Animations involving fliping ( e.g., rotateX, rotateY, rotateZ ) cause blinking glitches in Safari ( up to version 15.1 ). It's not a loading.css bug but a browser issue which is not yet solved.

    A simple workaround is to wrap animated elements within a container with following style:

    transform: translate3d(0,0,0)
    

    However this creates a stacking context and may not work well with fixed positioned elements.

    LICENSE

    MIT License

    About

    40+ Handcrafted CSS animations dedicated for your loaders

    Resources

    License

    Stars

    Watchers

    Forks

    Packages

     
     
     

    Contributors