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.

Related tags

Effect fakeLoader.js
Overview

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 http://joaopereirawd.github.io/fakeLoader.js/

Current Version

V2.0.0

1. Installing

yarn add jq-fakeloader
or
npm i jq-fakeloader

2. Include CSS

<link rel="stylesheet" href="../node_modules/dist/fakeLoader.min.css">

3. Include javascript dependencies

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js">
<script src="../node_modules/dist/fakeLoader.min.js">

4. Include fakeLoader placeholder in the HTML Document

<div class="fakeLoader"></div>

5. Basic Initialize

<script>
   $.fakeLoader();
</script>

6. Options

timeToHide //Time in milliseconds for fakeLoader disappear

spinner //'spinner1', 'spinner2', 'spinner3', 'spinner4', 'spinner5', 'spinner6', 'spinner7'

bgColor //Hex, RGB or RGBA colors

Support

If you encounter an issue or want to request a feature, you can create an issue

Comments
  • In options readme.md forgot to close the bracket

    In options readme.md forgot to close the bracket

    replace it to $("#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
            });
    
    opened by iRealNirmal 22
  • plugin simply doesn't work

    plugin simply doesn't work

    I followed the very simple guide at http://joaopereirawd.github.io/fakeLoader.js/

    and the plugin doesn't work at all, I have the css and js files included, the call at the footer : <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 }); </script>

    jquery is also included version 2.1.4, I don't understand why this is not working :/ halp!!

    edit: also nothing in the dev console of chrome.

    opened by sundowndev 6
  • Bars Appears on Top Left Corner Before Centering

    Bars Appears on Top Left Corner Before Centering

    Hi, First of all thank you for sharing this great plugin! I am trying to use your solution on This demo http://bazikontarin.com/Paralax Using Bootstrap 3 framework but for a reason the Bars appears first on top left corner and then moves to center! This might be watchable if you refresh the page several times! Can you please let me know why this is happening? and how I can fix it? Thanks

    opened by Behseini 4
  • Uncaught TypeError: jQuery(...).fakeLoader is not a function

    Uncaught TypeError: jQuery(...).fakeLoader is not a function

    Hello. I know this is little bit old, but it's the best of what I found. I'm using newest jQuery(CDN). I'm new to jQuery, but other plugins normally works. I'm using full (fakeLoader.js) version. I'm trying to show it when user clicks button, because it starts uploading file. When I click the button, nothing hapens and in console, it show the following: Why? Thanks for answer

    opened by techmandan 2
  • Any way to trigger via boolean instead of timer?

    Any way to trigger via boolean instead of timer?

    I'm looking for a way to trigger it based on a boolean value.

    Sometimes the time taken to execute an action differs, so I'd prefer to be able to set a flag to display whether to display the loader or not.

    opened by SFDX-Sam 2
  • There is a bug when getting the window size in Firefox

    There is a bug when getting the window size in Firefox

    When retrieving the Window's size using the jQuery function .width() and height() on the lines: 106 and 107 in the file fakeLoader.js/demo/js/fakeLoader.js, the functions return 0.

    Please read: http://stackoverflow.com/questions/12937494/why-does-firefox-return-0-as-the-value-of-window-height

    Cheers

    opened by Javirln 2
  • Error using script with jQuery 3.3.1

    Error using script with jQuery 3.3.1

    Uncaught TypeError: e.indexOf is not a function at w.fn.init.w.fn.load (jquery.min.js:2) at fakeLoader.min.js:1 at fakeLoader.min.js:1

    Any pointers?

    Regards

    opened by inglesuniversal 1
  • Dependency on jQuery

    Dependency on jQuery

    This is actually a request. Maybe you could make a version that doesn't rely on jQuery? This might be useful especially to developers who prefer not to use jQuery in their project, it's 2019 already :)

    opened by iambosspc 1
  • There is no git tags on GitHub repository

    There is no git tags on GitHub repository

    Hi @joaopereirawd , We are cdnjs team, we're going to host this library. The git auto-updater in cdnjs relies on git tags so that it can recognize the correct version and automatically update the repo. Could you please add git tags for the repo?

    If you have any suggestions, please let me know. Thank you.

    cdnjs/cdnjs#8337 cdnjs/cdnjs#8360

    opened by sufuf3 1
  • Add CSS file to

    Add CSS file to "main" dependency

    Proposal to add the project's CSS file to the "main" dependency spec, so tools such as https://github.com/austinpray/asset-builder can auto detect this file and include it during Gulp builds.

    opened by drawcard 1
  • It does not cover navbar?

    It does not cover navbar?

    I tried this plugin and it worked, but it simply does not cover my navbar (I am using bootstrap 4 alpha). I have tried putting it on top of my page (below body and before navbar) and still nothing changed.

    opened by christopher-bobby 0
  • $.fakeLoader is not a function

    $.fakeLoader is not a function

    I'm using CDN from cdnjs im my project. jQuery version is 3.3.1 and I'm still getting this error. Am I be missing out something? Both CSS and JS are loaded.

    opened by LeMajstor 0
  • bgColor: gradient?

    bgColor: gradient?

    Hi Thank you for such great package. Is it possible to set gradient color for bgColor?

    linear-gradient(red, yellow);

    I think it seems impossible. Then how can I set it?

    Thank you!

    opened by lovecoding-git 0
  • TypeScript typing files

    TypeScript typing files

    I believe adding a TypeScript type declaration (.d.ts) file would be useful for those who are transitioning into TypeScript but still rely on jQuery.

    I would appreciate it if you'd add this to a package @types/jquery-fakeloader (or similar).

    opened by hbulens 0
Releases(V2.0.0)
  • V2.0.0(Feb 25, 2019)

    FIX:

    • jQuery 3.0.0+ Support
    • Prevent loader flashing during the animation.
    • Sometimes spinner appear in the top left corner.
    • General Improvements

    ADD:

    • npm and yarn support
    • Spinner centered by css

    REMOVED:

    • Custom preload image
    • Centered spinner by Javascript
    Source code(tar.gz)
    Source code(zip)
Owner
João Pereira
Creative Front-end Developer
João Pereira
:keyboard: Simulate a typewriter effect in vanilla JavaScript.

malarkey Simulate a typewriter effect in vanilla JavaScript. Flexible API allowing granular control Option to repeat the sequence indefinitely Allows

Yuan Qing Lim 237 Nov 18, 2022
Demo of the tutorial on how to craft a fullscreen SVG crosshair mouse cursor with a special distortion effect on hover.

Crosshair Mouse Cursor Distortion Demo of the tutorial on how to craft a fullscreen SVG crosshair mouse cursor with a special distortion effect on hov

Codrops 33 Sep 23, 2022
Create a beautiful 3D tilted effect on scroll with jQuery Tilted Page Scroll plugin

#Tilted Page Scroll by Pete R. Create a beautilful 3D tilted scrolling effect for your website with jQuery Tilted Page Scroll. Created by Pete R., Fou

Pete R. 321 Sep 18, 2022
Loading effects for assets including some built in animated reveals

Asset loading effects This is a library to show the loading progress of given assets and reveal them using various animations. Please give feedback, r

Zach Saucier 97 Dec 8, 2022
A subtle tilt effect for images. The idea is to move and rotate semi-transparent copies with the same background image in order to create a subtle motion or depth effect.

Image Tilt Effect A subtle tilt effect for images. The idea is to move and rotate semi-transparent copies with the same background image in order to c

Codrops 571 Nov 21, 2022
Animated haze distortion effect for images and text, with WebGL.

Animated Heat Distortion Effects with WebGL A tutorial on how to use fragment shaders in WebGL to create an animated heat haze distortion effect on im

Lucas Bebber 289 Nov 1, 2022
Liquideffect - Javascript Library for creating liquid effect on image and RGB effect on mouse direction.

LiquidEffect Javascript Library for creating liquid effect on image and RGB effect on mouse direction. Demo https://liquideffect.netlify.app/ Dependen

Rohail 8 May 6, 2022
Create cool animated SVG spinners, loaders and other looped animations in seconds

SVG Circus SVG Circus enables you to create cool animated SVG spinners, loaders and other looped animations in seconds. Developing To run a local SVG

Alex Kaul 301 Dec 24, 2022
Simple jQuery plugin for 3d Hover effect

jQuery Hover3d jQuery Hover3d is a simple hover script for creating 3d hover effect. It was my experiment on exploring CSS3 3d transform back in 2015

Rian Ariona 333 Jan 4, 2023
A jQuery plugin that displays a thumbnail grid expanding preview similar to the effect seen on Google Images.

jQuery GRIDDER 1.4.2 ======= A jQuery plugin that displays a thumbnail grid expanding preview similar to the effect seen on Google Images. We have all

Orion Gunning 455 Nov 6, 2022
Lightweight, simple to use jQuery plugin to animate SVG paths

jQuery DrawSVG This plugin uses the jQuery built-in animation engine to transition the stroke on every <path> inside the selected <svg> element, using

Leonardo Santos 762 Dec 20, 2022
A tutorial on how to create a thumbnail grid with an expanding image preview similar to the effect seen on Google Images.

Thumbnail Grid with Expanding Preview A tutorial on how to create a thumbnail grid with an expanding image preview similar to the effect seen on Googl

Codrops 353 Jan 4, 2023
3D (animated) cube using only CSS (Less), originally used by LeanCloud (aka. AVOS Cloud)

cube.less 3D (animated) cube using only CSS (LESS). Demo See this demo page. There's also a live production site (WIP) using these cubes. Install $ bo

Tunghsiao Liu 54 Nov 14, 2022
Pure CSS animated 3D Super Mario Icon

Pure CSS Super Mario This is the transferred source of a little sideproject I did in 2010. I initially did this without any CSS preprocessor and event

Andreas Jacob 14 Apr 15, 2021
CSS loading animations with minimal effort!

Whirl CSS loading animations with minimal effort! whirl is a curation of CSS loading animations(whirls! ?? ). It started as a drop in CSS file to get

Jhey Tompkins 1.4k Jan 4, 2023
🔮 CSS loading animations made by single element.

Three Dots The project is a set of CSS loading animations created with three dots which made by just single element. I think the project can not only

Zongbin 1.2k Dec 29, 2022
Pure css cross-browser loading animations.

[ArtWorx] xLoader Pure css cross-browser loading animations. xLoader is part of the ArtWorx collection. Most of the loaders made by community, You can

Anas Tawfik 21 Nov 15, 2021
Animated images that are superficially attractive and entertaining but intellectually undemanding. Cool as all hell though!

MMM-EyeCandy Animated images that are superficially attractive and entertaining but intellectually undemanding. Add some EyeCandy to your mirror. Some

Mykle 36 Dec 28, 2022