Ads

Tuesday 9 December 2014

fakeLoader.js – create an animated spinner



Download   Demo
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.
1. INCLUDE CSS AND JS FILES
<link rel="stylesheet" href="yourPath/fakeLoader.css">
<script src="yourPath/fakeLoader.min.js">
2. HTML
<div id="fakeLoader"></div>
3. JAVASCRIPT
$(".fakeloader").fakeLoader();
4. OPTIONS
$(".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
});

3 comments:

  1. I followed the above steps but nothing happened.

    ReplyDelete
  2. I did it too and nothing happened. It would be great if someone explains me what I'm doing wrong.

    ReplyDelete
  3. There's no css where can i download its css???

    ReplyDelete