Giter VIP home page Giter VIP logo

loadie.js's Introduction

Loadie.js is a lightweight jQuery plugin to create a preloader that doesn't suck and that is used by big firms.

1. How to include Loadie.js

If you haven't already, include jQuery and the latest Loadie.js Script on the AJAX-driven page.

<script src="http://code.jquery.com/jquery-latest.min.js">
<script src="js/jquery.loadie.min.js">

2. How to initialize Loadie.js

Just put in the following jQuery code in your page to initialize Loadie.js.

$('body').loadie(); // Change the wrapper if wanted.

3. How to update Loadie.js

If you haven't already, include jQuery and the latest Loadie.js Script on the AJAX-driven page.

var percent = 0.74;
$('body').loadie(percent); // Insert your percent as params.

4. Update your CSS files

If you are running a web page with a fixed header or something fixed or positioned absolute on the top, your loadie will not be visible, because there is something that is called z-index.

.loadie { z-index: 9999; }

Insert this little snippet into your css file and everything should work fine.

Options

At this moment Loadie.js (v1.0) doesn't support extensive options. If you have any ideas what Loadie.js could be, just leave us an issue at Github.

##Copyright

This nice little jQuery plugin was crafted by @iDuuck of 9elements.

loadie.js's People

Contributors

brunowego avatar sebastiandeutsch avatar

Watchers

Leo Neil avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.