Coder Social home page Coder Social logo

jquery-loadbar's Introduction

Intro

jQuery Loadbar is a tool for manipulating and controlling loadingbars / progressbars (short. "loadbar"). The plugin itself is very lightweight; the minified (non-gzipped) version weighs merely 0.5kb, which means that the script will hardly affect any load times.

Examples

The script has only one function: "loadbar();". The function is fairly simple; you choose whether to increment the loadingbar by any amount between 1-100 or to assign an exact value to it. Lastly, you can configure the bar fillrate by defining how fast the flowing color will animate by passing a string ("slow", "medium" or "fast") as an argument to the function

The function syntax is as follows: $(".anyClass, #id or element").loadbar(value, filling, speed); Value is an integer while filling and speed are both strings.

Sample usage:

$(".loadbar").loadbar(35,"increment");
$(".loadbar").loadbar(15,"increment");
$(".loadbar").loadbar(55);
$(".loadbar2").loadbar(0); //the loadbars are independent and work separately.
$("button").click(function(){
    $(".loadbar2").loadbar(10,"increment");
});

jquery-loadbar's People

Stargazers

 avatar

Watchers

 avatar  avatar

jquery-loadbar's Issues

loadbar(); (no arguments) has no defaults

$(".sampleClass").loadbar(); will not result in any kind of action. Some kind of implementation should be made to fix this. One possible solution could be to add a default incrementation of 10 everytime loadbar(); is called without arguments.

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.