Skip to content

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.

License

Notifications You must be signed in to change notification settings

anta199/fakeLoader.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is fakeLoader.js

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.

Check out the Demo

Bower?

Me too :) fakeLoader.js is available as a Bower package. Just run

bower install fakeloader

1. Include in HTML Document

Include in the top of your <body> tag

<div id="fakeLoader"></div>



2. Include Styles

Inside <head> tag

<link rel="stylesheet" href="yourPath/fakeLoader.css">

3. Include Folowing Libraries

JQuery reference and the fakeLoader.js

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js">

<script src="yourPath/fakeLoader.min.js">

4. Basic Initialize

Include in bottom of your <body> tag


    <script type="text/javascript">
        $("#fakeLoader").fakeLoader();
    </script>

5. Options

<script type="text/javascript">

$("#fakeLoader").fakeLoader({
        timeToHide:1200, //Time in milliseconds for fakeLoader disappear
        zIndex:999, // Default zIndex
        spinner:"spinner1",//Options: 'spinner1', 'spinner2', 'spinner3', 'spinner4', 'spinner5', 'spinner6', 'spinner7' 
        bgColor:"#2ecc71", //Hex, RGB or RGBA colors
        imagePath:"yourPath/customizedImage.gif" //If you want can you insert your custom image
        
});
 &lt;/script&gt;

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 63.6%
  • JavaScript 36.4%