Hello dear readers! Welcome back to another edition of our tutorial on jQuery. In this tutorial guide, we are going to be discussing about the jQuery Progressbar.js Plugin.
Progressbar.js is a jQuery plugin for displaying progress bar.
Progressbar.js is a jQuery plugin for displaying progress bar.
Example
The following below is a simple Progressbar.js example -
<!DOCTYPE html lang = "en">
<html xmlns = "https://www.w3.org/1999/xhtml">
<head>
<meta charset = "utf-8">
<meta http-equiv = "X-UA-Compatible" content = "IE = edge, chrome = 1">
<meta name = "viewport" content = "width = device-width,
initial-scale = 1">
<title>Progressbar.js Example</title>
<link type = "text/css" rel = "stylesheet"
href = "https://www.queryscript.net/css/jqueryscripttop.css">
<link type = "text/css" rel = "stylesheet"
href = "jQuery-plugin-progressbar.css" >
<script type = "text/javascript"
src = "https://code.jquery.com/jquery-2.1.4.min.js">
</script>
<script type = "text/javascript"
src = "jQuery-plugin-progressbar.js">
</script>
</head>
<body>
<div class = "progress-bar position"></div>
<div class = "progress-bar position" data-percent = "50"
data-duration = "2000" data-color = "#ccc, blue"></div>
<div class = "progress-bar position" data-percent = "100"
data-color = "#a456b1, #12b321"></div>
<input type = "submit" value = "reload">
<script type = "text/javascript">
$( ".progress-bar" ).loading( );
$( 'input' ).on( 'click' , function( ) {
$( ".progress-bar" ).loading( );
} );
</script>
</body>
</html>
<html xmlns = "https://www.w3.org/1999/xhtml">
<head>
<meta charset = "utf-8">
<meta http-equiv = "X-UA-Compatible" content = "IE = edge, chrome = 1">
<meta name = "viewport" content = "width = device-width,
initial-scale = 1">
<title>Progressbar.js Example</title>
<link type = "text/css" rel = "stylesheet"
href = "https://www.queryscript.net/css/jqueryscripttop.css">
<link type = "text/css" rel = "stylesheet"
href = "jQuery-plugin-progressbar.css" >
<script type = "text/javascript"
src = "https://code.jquery.com/jquery-2.1.4.min.js">
</script>
<script type = "text/javascript"
src = "jQuery-plugin-progressbar.js">
</script>
</head>
<body>
<div class = "progress-bar position"></div>
<div class = "progress-bar position" data-percent = "50"
data-duration = "2000" data-color = "#ccc, blue"></div>
<div class = "progress-bar position" data-percent = "100"
data-color = "#a456b1, #12b321"></div>
<input type = "submit" value = "reload">
<script type = "text/javascript">
$( ".progress-bar" ).loading( );
$( 'input' ).on( 'click' , function( ) {
$( ".progress-bar" ).loading( );
} );
</script>
</body>
</html>
RECOMMENDED: jQuery Alertify Plugin
Alright guys! This is where we are rounding up for this tutorial post. In our next tutorial guide, we are going to be discussing about the Slideshow.js Plugin.
Do feel free to ask your questions where necessary and i will attend to them as soon as possible. If this tutorial was helpful to you, you can use the share button to share this tutorial.
Follow us on our various social media platforms to stay updated with our latest tutorials. You can also subscribe to our newsletter in order to get our tutorials delivered directly to your emails.
Thanks for reading and bye for now.
Do feel free to ask your questions where necessary and i will attend to them as soon as possible. If this tutorial was helpful to you, you can use the share button to share this tutorial.
Follow us on our various social media platforms to stay updated with our latest tutorials. You can also subscribe to our newsletter in order to get our tutorials delivered directly to your emails.
Thanks for reading and bye for now.