Progress Bar with jQuery

Size
2,749 Kb
Views
16,192

How do I make an progress bar with jquery?

What is a progress bar with jquery? How do you make a progress bar with jquery? This script and codes were developed by Deyan Dimitrov on 13 November 2022, Sunday.

Progress Bar with jQuery Previews

Progress Bar with jQuery - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Progress Bar with jQuery</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class='sign-up-button'> <a href="javascript:__SubmitButton6163();void(0);">Click Here</a>
</div>
<div class="progressBar"> <span class="progressPercent">0%</span> <div class="progressFill"></div>
</div>
<div class="progressDone"> <div class="progressDoneText">Done</div>
</div>
<div class="loading"> <div class="loading-pulse"><span>Loading</span></div>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Progress Bar with jQuery - Script Codes CSS Codes

body { width: 780px; margin: 0 auto; font-family: Helvetica, Arail, Verdana, sans-serif;
}
.sign-up-button a{ display:block; padding: 10px; margin: 7em auto 0; text-align:center; width:150px; border:1px solid #336699; text-decoration:none; background-color:#336699; color:#fff; transition: all .3s ease;
}
.sign-up-button a:hover{ background-color:#fff; color:#336699;
}
.progressBar { width: 80%; background:#ededed; border: 1px solid #ededed; position: relative; margin: 3em auto 0;
}
.progressPercent { position: absolute; left: 50%; color:#fff; line-height:35px;
}
.progressFill { height: 35px; background-color: #669933; width: 0%;
}
.progressDone { width: 100px; height: 100px; line-height:100px; background: #669933; position: relative; border-radius: 50px; margin:3em auto; z-index: -1;
}
.progressDoneText { width:100%; vertical-align: middle; text-align: center; font-size: 21px; color:#fff; font-weight:700;
}
.loading-text{ display:block; width:100%; position:relative; top:40px; color:#336699; text-align:center; font-weight:700;
}
.loading { position: absolute; left: 50%; top: 80%; margin: -60px 0 0 -60px; background: #fff; width: 100px; height: 100px; border-radius: 100%; border: 10px solid transparent;
}
.loading:after { content: ''; background: trasparent; width: 140%; height: 140%; position: absolute; border-radius: 100%; top: -20%; left: -20%; opacity: 0.7; box-shadow: #669933 -4px -5px 3px -3px; animation: rotate 2s infinite linear;
}
@keyframes rotate { 0% { transform: rotateZ(0deg); } 100% { transform: rotateZ(360deg); }
}
.loading-pulse { border: 10px solid #669933; -webkit-border-radius: 100%; border-radius: 100%; height: 100px; width: 100px; position: absolute; right:-10px; top:-10px; -webkit-animation: pulsate 1s ease-out; -webkit-animation-iteration-count: infinite; opacity: 0;
}
@-webkit-keyframes pulsate { 0% {-webkit-transform: scale(0.1, 0.1); opacity: 0.0;} 50% {opacity: 1.0;} 100% {-webkit-transform: scale(1.2, 1.2); opacity: 0.0;}
}
.loading-pulse > span { position:relative; top:40px; right:-19px; color:#669933; font-weight:700;
} 

Progress Bar with jQuery - Script Codes JS Codes

 $(document).ready(function () { $('.sign-up-button > a').click(progressBar); var showData = $('#show-data'); $('.progressBar').hide(); $('.progressDone').hide(); $('.loading').hide(); // Progress Bar function progressBar() { let i = 0; $('.progressBar').show(); $('.loading').show(); setInterval(function () { if (i !== 101) { $('.progressPercent').html(i + '%'); $('.progressPercent').css('left', (i -10) + '%'); $('.progressFill').css('width', i + '%'); i += 1; } if (i === 100) { $('.progressBar').hide(); $('.progressDone').fadeIn('slow'); } }, 10); }
});
Progress Bar with jQuery - Script Codes
Progress Bar with jQuery - Script Codes
Home Page Home
Developer Deyan Dimitrov
Username deyand
Uploaded November 13, 2022
Rating 3
Size 2,749 Kb
Views 16,192
Do you need developer help for Progress Bar with jQuery?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Deyan Dimitrov (deyand) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!