50 Progress Bar Gif

  1. 50 Progress Bar Gift Card
  2. Animated Gif Progress Bar

I’m working on a project that requires a bit of Javascript loading time before displaying the UI, so instead of doing what I usually do and downloading an animated gif from ajaxload I thought it would be a good opportunity to try out a CSS3 animation.

Inspired by 37 Signals loading bar (pictured above) and making good use of Chris Coyier’s tutorial on CSS3 Progress Bars I set to work designing a bar in Photoshop and then replicating it in CSS3.

Animated GIF Progress Bar Timers Clipart – Transpa license(s). Many of my products are 50% off for the first 48 hours after I upload them! Apr 26, 2019 - Loading Bar Gif files. See more ideas about gif, loading bar, animation. Bootstrap 5 Progress component. Responsive progress bar built with the latest Bootstrap 5. Progress bar is an indicator showing the completion progress, i.e. Use it with percents, steps & other options. Documentation and examples for using custom progress bars featuring support for stacked bars, animated backgrounds, and text labels. Free Download Ajax Progress Loading Bar in 9 different sizes GIF files. Download more free animation loading gif files from flevix.

CSS and Markup

Here is the source code if you want to try it yourself.

If you like it please give it some love on Dribbble.

LoadingBar.js

LoadingBar.js is a highly flexible, open sourced progress bar library based on SVG.

Ease of Use

use it simply by adding a ldBar css class to create your own progress bar.

Rich Presets

various prebuilt styles of progress bar for you to choose, by simply adding a data-preset attribute.

data-preset='circle'
data-preset='bubble'
data-preset='line'
data-preset='fan'

Highly Configurable

You can use HTML attributes, Stylesheet or even JS API to customize it

<div,></div>

...And is Small!

plus no external dependency. just in vanilla JS.

14KB unzipped
no external dependency

Installation

download loading bar JS and CSS files ( or, the zipped pack ) and include them in your HTML:

<link type='text/css' href='loading-bar.css'/><script type='text/javascript' src='loading-bar.js'></script>

You can also clone the loadingBar.js Github repository and build the files by yourself.

Basic Usage

Create an element with ldBar class and set its value by data-value attribute:

Progress

By default, loadingBar.js will create a progress bar in the ldBar element for you. A corresponding ldBar JavaScript object is also created automatically and stored directly in this element, you can use the object to update bar's value with set method. Alternatively, you can use construct a new ldBar object constructor directly by passing the css selector:

<div></div><script> /* construct manually */ var bar1 = new ldBar('#myItem1'); /* ldBar stored in the element */ var bar2 = document.getElementById('myItem1').ldBar; bar1.set(60);</script>

now you have a progress bar with default style, showing 60% as its value:

Basic Styling

Progress bars in loadingBar.js are all responsive; you can use the css width and height properties to control its size. For example, this is a huge circular progres bar with width:50% :

Additionally, stroke-type progress bars are made with path elements, so you can also control their style with common svg / css attributes:

stroke-width: 10
stroke-lincap: round
stroke: red

Elements for the base grid line and the progress bar are named with class 'baseline' and 'mainline' respectively. This is quite useful when you need advanced styling. Following example makes a decent circular progress bar with shadow by tickling with 'mainline' and 'baseline' classes:

<style type='text/css'> .ldBar path.mainline { stroke-width: 10; stroke: #09f; stroke-linecap: round; } .ldBar path.baseline { stroke-width: 14; stroke: #f1f2f3; stroke-linecap: round; filter:url(#custom-shadow); }</style><svg><defs><filter> ... (ignored)

Label Styling

In above example, we used a built-in class label-center to instruct ldBar to centralize the label:

<divtext-danger'>label-center'></div>

However, you can do your own styling by tickling the 'ldBar-label' class. Label of ldBar is in fact a HTML <div> tag with 'ldBar-labal' class, so you can style it with CSS like this:

<style type='text/css'> .ldBar-label { color: #09f; font-family: 'varela round'; font-size: 2.5em; font-weight: 900; } .ldBar path.mainline { ... /* styling of bar omitted */</style>

Custom Unit

Unit in label is by default '%' and controlled by the after pseudo element, so you can change it by tweaking the after pseudo element like this:

.ldBar-label:after { content: 'USD'; /* change from % to USD */ font-size: 0.6em;}

If somehow you can't use CSS to change unit, you can also specify data-unit attribute to customize unit; in this case the unit will be put in a span element inside .ldBar-label node:

<div data-unit='USD'data-preset='fan'></div><style type='text/css'> .ldBar-label span { font-size: 0.6em; color: #09f; }</style>

Presets

Besides default progress bar, there are various presets in loadingBar for you to choose. To choose a preset, use the data-preset attribute:

<div data-preset='fan'></div>

Following are the built-in presets shipped along with loadingBar.js:

50 Progress Bar Gift Card

line
fan
circle
bubble
rainbow
energy
stripe
text

Furthermore, you can config and customize your loading bar even if you have specified and customize your path by providing SVG Path command to the data-path attribute. Following example draws a sinle, horizontal line:

<div data-type='stroke'data-path='M10 10L90 10'></div>

For a more complicated example, below we draw a heart with Adobe Illustrator ( left ) and save it as SVG ( right ):

<svg><path fill='none' stroke='#ed2024' d='M90.5,23.2c0-12.5-10.2-22.7-22.7-22.7c-13.6,0-20.9,8.6-22.3,13.8C44.3,8.9,35.1,0.5,23.2,0.5C10.7,0.5,0.5,10.7,0.5,23.2c0,22.2,36.5,45.3,45,55.9C53.5,67.3,90.5,46.3,90.5,23.2z'/></svg>

we can then use the path command ( red part ) in></div>

further tweaking is possible with following attributes:

attr namedescription
data-stroketweak stroke color or pattern
data-stroke-widthtweak stroke width
data-stroke-trailtweak trail width color
data-stroke-trail-widthtweak trail width

following examples show how to config with stroke and trail:

<div></div>
<div></div>

Note that alternatively you can style loading bar with CSS, as mentioned in previous section.

Fill Type Progress Bar

to use fill type progress bar, just set data-type attribute to 'fill'. loadingBar can fill either a path of an image, specified by data-path and data-img respectively:

<div data-path='M90.5,23.2c0-12 ... 23.2z'></div>
<div data-img='kirby-dance.svg'></div>

Image Size

LoadingBar.js use the image size to initialize the progress bar, but if you need a different size, you can use data-image-size attribute to change its size:

<div data-img-size='100,100'></div>

Fill Direction

Direction of fill type progres bar is by default from left to right. To change this direction, use data-fill-dir:

<div data-fill-dir='btt'></div>
<div data-fill-dir='ltr'></div>

there are 4 possible values for data-fill-dir attribute:

  • btt - bottom to top
  • ttb - top to bottom
  • ltr - left to right
  • rtl - right to left

Data Range

You can use alternative data range instead of 0 ~ 100 by data-min and data-max attributes. For example, following code generates a bar that is empty with value '59' / full with value '87':

Animated Gif Progress Bar

Data Precision

LoadingBar.js rounds values by default, but you can use data-precision to control how values are rounded. To round to the fourth decimal places, use data-precision='0.0001':

<div data-precision='0.0001'></div>
Styling Background

We can also control the color and size of the base image with data-fill-background (for color) and data-fill-background-extrude (for size) attributes:

<div data-fill-background='#9df'></div>
<div data-fill-background-extrude='5'></div>
<div data-fill-background-extrude='5'></div>

Pattern Generator

To make it easier to customize your progress bar, we provide generators for generating patterns including graident, stripe and bubbles. they can be used in data-path, data-fill and data-stroke. They are designed with a></div>

Bubble

syntax:

data:ldbar/res,bubble(colorBk, colorBubble, count, duration)

example:

<div></div>

Stripe

syntax:

example:

<div></div>

Custom Pattern Images

If the above generators don't fit your need, you can use your own pattern images. To use image to fill / stroke progress bar, simply put the image URL in></div>

While making animated patterns is not a trivial task, Loading.io provides a rich pattern library 'Loading Patterns' for you to choose; here are some sample patterns from 'loading patterns':

All patterns from loading.io are seamless repeatable and animatable and can still be generated in static form. Don't forget to take a look if there is anything you need.

Go to Loading Patterns

Pattern Sizing

You can specify the pattern size with data-pattern-size attribute to make pattern bigger or smaller:

<div data-pattern-size='10'></div>

Some examples of different pattern size:

JS API

You can use JavaScript to initialize a progress bar:

var bar = new ldBar( node-selector, /* Element or Selector for target element */ options /* check Reference for supported options */);

All options are HTML attribute counterpart without data- prefix. For example, following script create a red, fan type progress bar:

<div></div><script> var bar = new ldBar('.myBar', { 'stroke': '#f00', 'stroke-width': 10, 'preset': 'fan', 'value': 65 });</script>

To update bar's value, simply use set method will do:

bar.set( 50, /* target value. */ false /* enable animation. default is true */);

Reference

Here is a complete list of all configurations for loading bars.

namedescription
data-typeset the progress type. can be stroke or fill.
data-fill-dir

growth direction of fill type progress bar. possible value: ttb / rtl / ltr / btt.

  • ttb - top to bottom
  • btt - bottom to top
  • ltr - left to right
  • rtl - right to left
data-stroke-dirgrowth direction of stroke type progress bar. possible value: normal / reverse
data-imgimage of fill type progress bar. could be a file name or data URI.
data-pathSVG Path command, such as M10 10L90 10. used both in stroke and fill type progress bar.
data-fillfill color, pattern or image when using a fill type progress bar with custom rounds values to second decimal place.
data-durationbar animation duration.
data-transition-inanimate the bar for entering transition, when value is set by data-value.

Browser Compatibility

tl;dr - Support Modern Browsers and IE >= 10

LoadingBar.js is based on several nowaday web technologies supported by modern browsers except IE.

  • Progress Bar Transition - based on CSS Transition and SVG filter ( IE >= 10 )
  • Customized Path - based on SVG ( IE >= 9 )
  • (Optional) Animated Patterns ( such as bubbles ) - based on SMIL ( not supported in IE / Edge )

SMIL can help keep complicated animation minimized and the patterns still look ok in IE without animation, so you can consider using them even you want to support IE >= 10. otherwise, use your own GIF for IE>=10 compatibility in animated fill patterns.

License

This project is released under MIT License; check out our Github Repo for more information.

Comments

Any questions or suggestion? Feel free to leave comment here. :)


Advanced StylingPattern GeneratorJS APIConfig ReferenceCompatibiliyLicenseComment