WEB DEVELOPER SITE
htmlCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Bootstrap 4 - Progress


Provide graphical remarks on the development of a manner with Bootstrap's development bars. Bootstrap offers a thing for showing development bars on a website. Progress bars are generally used to provide remarks to the user on the development of a given process or movement.

Basic Progress Bar

The fundamental progress bar can be created by means of including <div> detail with a class of .Development and upload the .Progress-bar magnificence internal its child detail. Add a style attribute with the width expressed as a percent.

<html lang = "en">
   <head>
      <!-- Meta tags -->
      <meta charset = "utf-8">
      <meta call = "viewport" content = "width = tool-width, preliminary-scale = 1, reduce-to-match = no">
      
      <!-- Bootstrap CSS -->
      <link rel = "stylesheet" 
         href = "https://stackpath.Bootstrapcdn.Com/bootstrap/4.1.Three/css/bootstrap.Min.Css" 
         integrity = "sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" 
         crossorigin = "nameless">
      
      <identify>Bootstrap 4 Example</identify>
   </head>
   
   <body>
      <div elegance = "field">
         <h2>Basic Progress Bar</h2>
         <br>
         
         <div magnificence = "development">
            <div class = "development-bar" style = "width:eighty five%"></div>
         </div>
      </div>
      
      <!-- jQuery library -->
      <script src = "https://code.Jquery.Com/jquery-3.2.1.Slim.Min.Js" 
         integrity = "sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" 
         crossorigin = "nameless">
      </script>
      
      <!-- Popper -->
      <script src = "https://cdnjs.Cloudflare.Com/ajax/libs/popper.Js/1.12.9/umd/popper.Min.Js" 
         integrity = "sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" 
         crossorigin = "nameless">
      </script>
      
      <!-- Latest compiled and minified Bootstrap JavaScript -->
      <script src = "https://maxcdn.Bootstrapcdn.Com/bootstrap/four.Zero.Zero/js/bootstrap.Min.Js" 
         integrity = "sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" 
         crossorigin = "anonymous">
      </script>
      
   </body>
</html>

It will produce the following end result −

Output

Colored Progress Bars

The colour of progress bars may be modified by using the usage of contextual instructions together with bg-fulfillment, bg-information, bg-caution, and bg-chance as proven inside the underneath example −

<html lang = "en">
   <head>
      <!-- Meta tags -->
      <meta charset = "utf-8">
      <meta name = "viewport" content = "width = tool-width, preliminary-scale = 1, reduce-to-in shape = no">
      
      <!-- Bootstrap CSS -->
      <link rel = "stylesheet" 
         href = "https://stackpath.Bootstrapcdn.Com/bootstrap/4.1.3/css/bootstrap.Min.Css" 
         integrity = "sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" 
         crossorigin = "anonymous">
      
      <identify>Bootstrap four Example</name>
   </head>
   
   <frame>
      <div magnificence = "field">
         <h2>Colored Progress Bars</h2>
         <div magnificence = "development">
            <div magnificence = "development-bar bg-success" function = "progressbar" 
               fashion = "width: 15%" aria-valuenow = "15" aria-valuemin = "zero" 
               aria-valuemax = "100"></div>
         </div>
         <br>
         
         <div elegance = "progress">
            <div class = "progress-bar bg-data" role = "progressbar" 
               style = "width: 35%" aria-valuenow = "35" aria-valuemin = "0" 
               aria-valuemax = "one hundred"></div>
         </div>
         <br>
         
         <div elegance="progress">
            <div class = "development-bar bg-warning" function = "progressbar" 
               style = "width: 65%" aria-valuenow = "sixty five" aria-valuemin = "0" 
               aria-valuemax = "one hundred"></div>
         </div>
         <br>
         
         <div elegance = "progress">
            <div class = "development-bar bg-danger" role = "progressbar" 
               fashion = "width: 95%" aria-valuenow = "ninety five" aria-valuemin = "zero" 
               aria-valuemax = "100"></div>
         </div>
      </div>
      
      <!-- jQuery library -->
      <script src = "https://code.Jquery.Com/jquery-three.2.1.Slender.Min.Js" 
         integrity = "sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" 
         crossorigin = "anonymous">
      </script>
      
      <!-- Popper -->
      <script src = "https://cdnjs.Cloudflare.Com/ajax/libs/popper.Js/1.12.9/umd/popper.Min.Js" 
         integrity = "sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" 
         crossorigin = "nameless">
      </script>
      
      <!-- Latest compiled and minified Bootstrap JavaScript -->
      <script src = "https://maxcdn.Bootstrapcdn.Com/bootstrap/four.Zero.Zero/js/bootstrap.Min.Js" 
         integrity = "sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" 
         crossorigin = "nameless">
      </script>
      
   </frame>
</html>

It will produce the following result −

Output

Striped Progress Bars

You can upload stripes to progress bars with the aid of including .Development-bar-striped magnificence in the <div> element with a category of .Progress-bar.

<html lang = "en">
   <head>
      <!-- Meta tags -->
      <meta charset = "utf-8">
      <meta name = "viewport" content = "width = device-width, preliminary-scale = 1, cut back-to-suit = no">
      
      <!-- Bootstrap CSS -->
      <hyperlink rel = "stylesheet" 
         href = "https://stackpath.Bootstrapcdn.Com/bootstrap/4.1.Three/css/bootstrap.Min.Css" 
         integrity = "sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" 
         crossorigin = "nameless">
      
      <name>Bootstrap 4 Example</title>
   </head>
   
   <frame>
      <div elegance = "field">
         <h2>Striped Progress Bars</h2>
         <div magnificence = "development">
            <div magnificence = "progress-bar progress-bar-striped" style = "width:20%"></div>
         </div>
         <br>
         
         <div magnificence = "progress">
            <div magnificence = "development-bar bg-achievement development-bar-striped" 
               fashion = "width:30%"></div>
         </div>
         <br>
         
         <div magnificence = "progress">
            <div magnificence = "progress-bar bg-info development-bar-striped" 
               fashion = "width:40%"></div>
         </div>
         <br>
         
         <div elegance = "development">
            <div elegance = "progress-bar bg-caution progress-bar-striped" 
               style = "width:50%"></div>
         </div>
         <br>
         
         <div class = "progress">
            <div class = "development-bar bg-danger development-bar-striped" 
               style = "width:60%"></div>
         </div>
      </div>
      
      <!-- jQuery library -->
      <script src = "https://code.Jquery.Com/jquery-3.2.1.Slim.Min.Js" 
         integrity = "sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" 
         crossorigin = "anonymous">
      </script>
      
      <!-- Popper -->
      <script src = "https://cdnjs.Cloudflare.Com/ajax/libs/popper.Js/1.12.9/umd/popper.Min.Js" 
         integrity = "sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" 
         crossorigin = "nameless">
      </script>
      
      <!-- Latest compiled and minified Bootstrap JavaScript -->
      <script src = "https://maxcdn.Bootstrapcdn.Com/bootstrap/four.0.0/js/bootstrap.Min.Js" 
         integrity = "sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" 
         crossorigin = "nameless">
      </script>
      
   </body>
</html>

It will produce the subsequent result −

Output

Animated Progress Bars

You can add animate to development bars by means of including .Progress-bar-animated class in the <div> detail with a class of .Progress-bar.

<html lang = "en">
   <head>
      <!-- Meta tags -->
      <meta charset = "utf-8">
      <meta name = "viewport" content material = "width = device-width, initial-scale = 1, reduce-to-fit = no">
      
      <!-- Bootstrap CSS -->
      <link rel = "stylesheet" 
         href = "https://stackpath.Bootstrapcdn.Com/bootstrap/4.1.Three/css/bootstrap.Min.Css" 
         integrity = "sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" 
         crossorigin = "nameless">
      
      <name>Bootstrap four Example</title>
   </head>
   
   <body>
      <div elegance = "box">
         <h2>Animated Progress Bars</h2>
         <div magnificence = "progress">
            <div elegance = "development-bar development-bar-striped progress-bar-animated" 
               style = "width:30%"></div>
         </div>
         <br>
         
         <div elegance = "development">
            <div class = "progress-bar bg-achievement progress-bar-striped development-bar-lively" 
               fashion = "width:60%"></div>
         </div>
         <br>
         
         <div elegance = "progress">
            <div class = "development-bar bg-information development-bar-striped progress-bar-lively" 
               fashion = "width:ninety%"></div>
         </div>
      </div>
      
      <!-- jQuery library -->
      <script src = "https://code.Jquery.Com/jquery-three.2.1.Narrow.Min.Js" 
         integrity = "sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" 
         crossorigin = "nameless">
      </script>
      
      <!-- Popper -->
      <script src = "https://cdnjs.Cloudflare.Com/ajax/libs/popper.Js/1.12.Nine/umd/popper.Min.Js" 
         integrity = "sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" 
         crossorigin = "anonymous">
      </script>
      
      <!-- Latest compiled and minified Bootstrap JavaScript -->
      <script src = "https://maxcdn.Bootstrapcdn.Com/bootstrap/4.0.Zero/js/bootstrap.Min.Js" 
         integrity = "sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" 
         crossorigin =" anonymous">
      </script>
      
   </body>
</html>

It will produce the following end result −

Output