All Projects → piccard21 → busy-load

piccard21 / busy-load

Licence: MIT License
A flexible loading-mask jQuery-plugin

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to busy-load

Whirl
CSS loading animations with minimal effort!
Stars: ✭ 774 (+918.42%)
Mutual labels:  loader, spinner, loading, loading-spinner
Spinners React
Lightweight SVG/CSS spinners for React
Stars: ✭ 254 (+234.21%)
Mutual labels:  loader, spinner, loading, loading-spinner
Vue Loading Overlay
Vue.js component for full screen loading indicator 🌀
Stars: ✭ 784 (+931.58%)
Mutual labels:  loader, overlay, spinner, loading
spinners-angular
Lightweight SVG/CSS spinners for Angular
Stars: ✭ 21 (-72.37%)
Mutual labels:  loader, spinner, loading
respinner
Pretty and customizable svg spinners for React.js
Stars: ✭ 89 (+17.11%)
Mutual labels:  spinner, loading, loading-spinner
Css Spinner
small, elegant pure css spinner for ajax or loading animation
Stars: ✭ 1,013 (+1232.89%)
Mutual labels:  loader, spinner, loading
Ngx Ui Loader
Multiple Loaders / spinners and Progress bar for Angular 5, 6, 7 and 8+
Stars: ✭ 368 (+384.21%)
Mutual labels:  loader, spinner, loading
SSSwiftUISpinnerButton
SSSwiftUISpinnerButton is a collection of various spinning animations for buttons in SwiftUI.
Stars: ✭ 37 (-51.32%)
Mutual labels:  loader, loading, loading-spinner
Ng Block Ui
Block UI Loader/Spinner for Angular
Stars: ✭ 135 (+77.63%)
Mutual labels:  loader, spinner, loading
React Loading Overlay
Loading overlays with fade, spinner, message support.
Stars: ✭ 218 (+186.84%)
Mutual labels:  loader, overlay, spinner
Vue Element Loading
⏳ Loading inside a container or full screen for Vue.js
Stars: ✭ 234 (+207.89%)
Mutual labels:  loader, spinner, loading
Waitme
jquery plugin for easy creating loading css3/images animations
Stars: ✭ 302 (+297.37%)
Mutual labels:  jquery-plugin, loader, loading
loading
Laravel package to add loading indicator to pages while page is loading.
Stars: ✭ 38 (-50%)
Mutual labels:  loader, spinner, loading-spinner
Vue Loaders
Vue + loaders.css
Stars: ✭ 127 (+67.11%)
Mutual labels:  loader, spinner, loading
cpp-indicators
A very simple, easy-to-use, and single-header-only C++ library for console based indicators (loading spinners)
Stars: ✭ 13 (-82.89%)
Mutual labels:  spinner, loading, loading-spinner
Vue Wait
Complex Loader and Progress Management for Vue/Vuex and Nuxt Applications
Stars: ✭ 1,869 (+2359.21%)
Mutual labels:  loader, spinner, loading
Vue Full Loading
Full overlay loading with spinner for Vue
Stars: ✭ 148 (+94.74%)
Mutual labels:  overlay, spinner, loading
material-circular-loader
Material Circular Loader in SCSS like a boss. Demo: http://codepen.io/YuRen/details/KdKKax
Stars: ✭ 13 (-82.89%)
Mutual labels:  loader, spinner, loading-spinner
Is Loading
Simple library to show visual feedback when loading data or any action that would take time
Stars: ✭ 232 (+205.26%)
Mutual labels:  loader, overlay, loading
spinnies
Node.js module to create and manage multiple spinners in command-line interface programs
Stars: ✭ 111 (+46.05%)
Mutual labels:  spinner, loading, loading-spinner

Build Status

busy-load

A simple, but flexible loading-mask plugin for jQuery.

  • Overlay
    • choose an animation, like fade or slide in
    • fiddle around with plenty of customization options
  • Spinners
    • css - select from a collection of pure css-spinners from Tobias Ahlin
    • image - use an image as a spinner
    • custom - pass in your custom jQuery-Element
    • fontawesome - just use the library-icons
  • Text
    • show some text
    • position it on top, bottom, left or right of the spinner
    • customize your text, like color, margin, size ...
  • ES6
    • because busy-load is completely written in ES6, you can simply require or import it

Demo

You can find some examples here.

Getting started

Add jQuery

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

then busy-load

<script src="https://cdn.jsdelivr.net/npm/busy-load/dist/app.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/busy-load/dist/app.min.css" rel="stylesheet">

and call the plugin from your element

$("#some-element").busyLoad("show");

// with options
$("#another-element").busyLoad("show", {
	background: "#000",
	spinner: "cube",
	animation: "slide"
});
$("#some-element").busyLoad("hide");  

// with options
$("#another-element").busyLoad("hide", {
  animation: "fade"
});

Hint

The overlay gets an absolute position, so if your caller element has a position of static, busy-load will turn it into relative.

Installation

cdn

<script src="https://cdn.jsdelivr.net/npm/busy-load/dist/app.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/busy-load/dist/app.min.css" rel="stylesheet">

npm

npm i busy-load
  • HINT: busy-load imports its scss to the bundle, so you will need a sass-loader.

import

import 'busy-load'; 

require

require('busy-load'); 

copy

  • You'll find a normal and a minified version of the js-& css file inside the dist-folder. You can copy them wherever you'd like and include them by a link- and script-tag.

Options

Here's a full list of all the default-options you can use and modify on the plugin:

Property Description value Default value
action show or hide the overlay show, hide -
spinner a CSS-spinner pump, accordion, pulsar, cube, cubes, circle-line, circles, cube-grid pump
image use an image as spinner source for image (location, string) false
fontawesome use a fontawesome-icon as a spinner fa fa-refresh fa-spin fa-2x fa-fw false
custom use a custom jQuery-element as spinner jQuery-element $("#el") false
color color of the spinner color-value #fff
background background of the overlay color-value rgba(0, 0, 0, 0.21)
maxSize max-size of the spinner size-value 50px
minSize min-size of the spinner size-value 20px
text text next to the spinner String or false false
textColor color of the text color-value default is color
textMargin margin of the text - works on every textPosition size-value false
textPosition where should the text appear top, bottom, left, right right
animation use an animation, when overlay appears or hides fade, slide false
animationDuration pass in duration of animation slow, fast, integer in ms fast
containerClass add a class to the overlay-container class-name busy-load-container
containerItemClass add a class to the container-item class-name busy-load-container-item
spinnerClass add a class to the spinner class-name busy-load-spinner
textClass add a class to the text class-name busy-load-text

To see them in action and learn how to use them goto this place.

Events

busy-load includes some basic events

Event Description parameters
bl.show before overlay is shown event, $container, $targetNode
bl.shown after overlay appeared event, $container, $targetNode
bl.hide before overlay disappears event, $container, $targetNode
bl.hidden after overlay is removed from DOM event, $container, $targetNode

Fullscreen

For a fullscreen-overlay use $.busyLoadFull():

$.busyLoadFull("show");
$.busyLoadFull("hide");
  • the method accepts the same options like busyLoad()

Setup

If you don't wanna pass in your options all the time, because it would repeat itself, you can use $.busyLoadSetup:

$.busyLoadSetup({
	animation: "slide",
	background: "rgba(255, 152, 0, 0.86)"
}); 

Defaults

To see the actual default-settings use $fn.busyLoad.defaults:

$.fn.busyLoad.defaults

Setting a new default value:

$.fn.busyLoad.defaults.color = "blue"

License

busy-load is licensed under the MIT License - see the LICENSE file for details.

Author

Andreas Stephan

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].