Today I have learned progress and spinner in javascript

 Progress

A Progress Bar is used to depict the progress of any task which is being carried out. Progress Bars are generally used to show the download and upload status. In other words we can say that, Progress Bars can be used to depict the status of anything that is in progress.

Spinner

The spinner is absolutely positioned at 50% of its offset parent. You may specify a top and left option to position the spinner manually

 <div class="spinner-grow text-muted"></div>
  <div class="spinner-border text-primary"></div>
  <div class="spinner-border text-secondary"></div>
  <div class="spinner-grow text-success"></div>
  <div class="spinner-border text-info"></div>
  <div class="spinner-border text-dark"></div>
  <div class="spinner-border text-warning"></div>
  <div class="spinner-border text-danger"></div>
  <div class="spinner-border text-light"></div>
</div>
<div class="progress">
  <div class="progress-bar" style={{width:"10%"}}></div>
</div>
<br></br>
<div class="progress">
  <div class="progress-bar progress-bar-striped  progress-bar-animated" style={{width:"20%"}}>20%</div>
</div>
<br></br>
<div class="progress">
  <div class="progress-bar bg-primary" style={{width:"30%"}}></div>
</div>
<br></br>
<div class="progress">
  <div class="progress-bar bg-dark" style={{width:"40%"}}></div>
</div>
<br></br>
<div class="progress">
  <div class="progress-bar bg-info" style={{width:"50%"}}></div>
</div>
<br></br>
<div class="progress">
  <div class="progress-bar bg-secondary" style={{width:"60%"}}></div>
</div>
<br></br>
<div class="progress">
  <div class="progress-bar bg-warning" style={{width:"70%"}}></div>
</div>
<br></br>
<div class="progress">
  <div class="progress-bar bg-danger" style={{width:"80%"}}></div>
</div>
<br></br>
<div class="progress">
  <div class="progress-bar progress-bar-striped  progress-bar-animated" style={{width:"90%"}}>90%</div>
</div>
Output:


Comments

Popular posts from this blog

Building a Full-Stack Student Management System with React.js and NestJS

Today I have solved the problem in javascript

Today I have solved the problem in javascript