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 |
Dropdown styles | 2,097 Kb |
Animated Checkboxes | 2,911 Kb |
Map Location Hover demo | 3,439 Kb |
Input File behaviours | 2,550 Kb |
A Pen by Jarad Light | 2,453 Kb |
RPG Tool | 3,422 Kb |
Sass Placeholder Stuff | 1,751 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 |
Image Hover | Johnheiner | 3,409 Kb |
Octopus Bar iPad App Interactions | Davidkpiano | 6,735 Kb |
Flickering Light Text Effect | Mandymichael | 3,315 Kb |
Tooltip in table | Roine | 3,713 Kb |
Table Exercise | Fresco | 9,585 Kb |
Draggables in pure angular | Rlo206 | 5,167 Kb |
WRENCH - STAFF | Lolita-adams | 1,608 Kb |
Ball physics | Blackkbot | 3,874 Kb |
CSS-Flexbox-Demo | Sstiglets | 1,709 Kb |
A Pen by Alex Bergin | Abergin | 3,347 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!