Loading effects for assets including some built in animated reveals
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css Protocol relative font in CSS @import. Jun 2, 2015
js Scoped functions using an IIFE Jun 6, 2015
sass Added files May 26, 2015
.gitignore Added files May 26, 2015
README.md Added some description May 26, 2015

README.md

Asset loading effects

This is a library to show the loading progress of given assets and reveal them using various animations. Please give feedback, report bugs, and propose new loader ideas!

Read about how it was made

Asset loading effects

Effect demos:

How to use:

  1. Include the necessary files. Right now that means you need to include the 3 required JS files and the CSS
  2. Apply the .ale class to all elements you want to use a loading effect on.
  3. Declare the loader type using data-ale-type
  4. Declare the source(s) for the element using data-ale-src. For a secondary (backup) source, use data-ale-src-backup.
  5. If it's a video, also declare data-ale-is-vid=true.

Image example:

<div class="ale" data-ale-type="diagonal" data-ale-src="/img/url.jpg">

Video example:

<div class="ale" data-ale-type="diagonal" data-ale-src="/vid/vidFile.mp4" data-ale-src-backup="/vid/backupVidFile.mpeg" data-ale-is-vid=true>

Please feel free to make and add your own effects and remove effects you're not using in your project! I'd love to hear suggestions for other loading effects. Understanding how it's made will help you if you're seeking to make your own effects.


Follow me: Twitter, CodePen, GitHub