Wednesday, May 20, 2020

jQuery Progressbar.js Plugin



Hello guys! Welcome to a new section of my tutorials on jQuery. In this tutorial post, i will be discussing about jQuery Progressbar.js Plugin.

Progressbar.js is a jQuery plugin for displaying progress bar.

Example

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>


Alright guys! This is where we are wrapping it up with this tutorial. In my next tutorial post, i will be discussing about jQuery Slideshow plugins. Feel free to ask your questions where necessary and i will attend to them as soon as possible.

If you found this tutorial helpful and interesting, kindly use the share button to share this tutorial. Follow us on our various social media platforms available to stay updated with our latest posts. Also subscribe to our newsletter to get all our tutorials delivered directly to your emails.

Thanks for reading and bye for now.
Share:

0 comments:

Post a Comment