Loading Bar
How do I make an loading bar?
Messing around with loading bar stuff.. What is a loading bar? How do you make a loading bar? This script and codes were developed by Jarad Light on 09 October 2022, Sunday.
Loading Bar - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Loading Bar</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="container"> <div id="reset">Reset</div> <div class="outer"> <div class="inner"></div> </div> <div id="measure"></div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Loading Bar - Script Codes CSS Codes
body { background: #111;
}
#container { width: 400px; margin: 0px auto;
}
.outer { margin: 20px 0; height: 10px; background: #333; padding: 3px; border-radius: 5px;
}
.inner { width: 0px; height: 100%; border-radius: 3px; background: #f11; box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.5) inset, 0px -1px 0px rgba(0, 0, 0, 0.7) inset;
}
#reset { padding: 10px; background: #d22; color: white; text-align: center;
}
Loading Bar - Script Codes JS Codes
loading = false;
$("#reset").click(function(){ loading = true; $(".inner").css("width",0);
});
window.setInterval(function(){ if(loading){ increaseBar(); }
}, 10);
function increaseBar(){ var wInner = $('.inner').width(); var wOuter = $('.outer').width(); wInner++; if(wInner < wOuter){ $(".inner").css("width",wInner); //} } else { loading = false; }
}
Developer | Jarad Light |
Username | jaradlight |
Uploaded | October 09, 2022 |
Rating | 3 |
Size | 2,333 Kb |
Views | 18,216 |
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!
Name | Size |
Simple Menu | 2,790 Kb |
RPG Tool | 3,422 Kb |
Map Location Hover demo | 3,439 Kb |
A Pen by Jarad Light | 2,453 Kb |
Input File behaviours | 2,550 Kb |
Dropdown styles | 2,097 Kb |
Sass Placeholder Stuff | 1,751 Kb |
Animated Checkboxes | 2,911 Kb |
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!
Name | Username | Size |
Jstam.com Home Page | Jstam | 10,558 Kb |
A Pen by James Podles | Jpod | 2,656 Kb |
Ghost Buttons with CSS3 | Mithicher | 2,509 Kb |
Draggable directive | YahyaKacem | 2,277 Kb |
A Pen by Taylor Vowell | Taylorvowell | 5,962 Kb |
Tooltip in table | Roine | 3,713 Kb |
Cool Page Split Effect | Anthonyadamski | 6,128 Kb |
IbrahimJabbari-Effect21 | Ibrahimjabbari | 1,882 Kb |
Shop Talk logo made in CSS | Hugo | 19,368 Kb |
Print element on a page | Mrs_snow | 2,081 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!