Slug loader
How do I make an slug loader?
Just messing around. this isn't what i was attempting to do when i started but, oh well.. What is a slug loader? How do you make a slug loader? This script and codes were developed by Brandon Kennedy on 18 September 2022, Sunday.
Slug loader - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>slug loader</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ html,
body { min-height: 100px; /* width: 100% */
}
#loader { display: block; height: 100px; margin: 45vh auto; width: 240px;
}
#loader .bar { animation: scale 2s ease-in-out infinite; margin: 0 1px; float: left; height: 100px; position: relative; width: 10px;
}
#loader .bar:before { background: orange; border-radius: 5px; content: ""; height: 100%; left: 0; position: absolute; top: 0; width: 100%;
}
#loader .bar:nth-child(1) { animation-delay: 0.05s;
}
#loader .bar:nth-child(1):before { transform: scale(0.19);
}
#loader .bar:nth-child(2) { animation-delay: 0.1s;
}
#loader .bar:nth-child(2):before { transform: scale(0.36);
}
#loader .bar:nth-child(3) { animation-delay: 0.15s;
}
#loader .bar:nth-child(3):before { transform: scale(0.51);
}
#loader .bar:nth-child(4) { animation-delay: 0.2s;
}
#loader .bar:nth-child(4):before { transform: scale(0.64);
}
#loader .bar:nth-child(5) { animation-delay: 0.25s;
}
#loader .bar:nth-child(5):before { transform: scale(0.75);
}
#loader .bar:nth-child(6) { animation-delay: 0.3s;
}
#loader .bar:nth-child(6):before { transform: scale(0.84);
}
#loader .bar:nth-child(7) { animation-delay: 0.35s;
}
#loader .bar:nth-child(7):before { transform: scale(0.91);
}
#loader .bar:nth-child(8) { animation-delay: 0.4s;
}
#loader .bar:nth-child(8):before { transform: scale(0.96);
}
#loader .bar:nth-child(9) { animation-delay: 0.45s;
}
#loader .bar:nth-child(9):before { transform: scale(0.99);
}
#loader .bar:nth-child(10) { animation-delay: 0.5s;
}
#loader .bar:nth-child(10):before { transform: scale(1);
}
#loader .bar:nth-child(11) { animation-delay: 0.55s;
}
#loader .bar:nth-child(11):before { transform: scale(0.99);
}
#loader .bar:nth-child(12) { animation-delay: 0.6s;
}
#loader .bar:nth-child(12):before { transform: scale(0.96);
}
#loader .bar:nth-child(13) { animation-delay: 0.65s;
}
#loader .bar:nth-child(13):before { transform: scale(0.91);
}
#loader .bar:nth-child(14) { animation-delay: 0.7s;
}
#loader .bar:nth-child(14):before { transform: scale(0.84);
}
#loader .bar:nth-child(15) { animation-delay: 0.75s;
}
#loader .bar:nth-child(15):before { transform: scale(0.75);
}
#loader .bar:nth-child(16) { animation-delay: 0.8s;
}
#loader .bar:nth-child(16):before { transform: scale(0.64);
}
#loader .bar:nth-child(17) { animation-delay: 0.85s;
}
#loader .bar:nth-child(17):before { transform: scale(0.51);
}
#loader .bar:nth-child(18) { animation-delay: 0.9s;
}
#loader .bar:nth-child(18):before { transform: scale(0.36);
}
#loader .bar:nth-child(19) { animation-delay: 0.95s;
}
#loader .bar:nth-child(19):before { transform: scale(0.19);
}
#loader .bar:nth-child(20) { animation-delay: 1s;
}
#loader .bar:nth-child(20):before { transform: scale(0);
}
@keyframes scale { 0% { transform: scale(1); } 50% { /* border-radius: 0; */ transform: scale(1.2); } 100% { transform: scale(1); }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div id="loader"></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>
Slug loader - Script Codes CSS Codes
html,
body { min-height: 100px; /* width: 100% */
}
#loader { display: block; height: 100px; margin: 45vh auto; width: 240px;
}
#loader .bar { animation: scale 2s ease-in-out infinite; margin: 0 1px; float: left; height: 100px; position: relative; width: 10px;
}
#loader .bar:before { background: orange; border-radius: 5px; content: ""; height: 100%; left: 0; position: absolute; top: 0; width: 100%;
}
#loader .bar:nth-child(1) { animation-delay: 0.05s;
}
#loader .bar:nth-child(1):before { transform: scale(0.19);
}
#loader .bar:nth-child(2) { animation-delay: 0.1s;
}
#loader .bar:nth-child(2):before { transform: scale(0.36);
}
#loader .bar:nth-child(3) { animation-delay: 0.15s;
}
#loader .bar:nth-child(3):before { transform: scale(0.51);
}
#loader .bar:nth-child(4) { animation-delay: 0.2s;
}
#loader .bar:nth-child(4):before { transform: scale(0.64);
}
#loader .bar:nth-child(5) { animation-delay: 0.25s;
}
#loader .bar:nth-child(5):before { transform: scale(0.75);
}
#loader .bar:nth-child(6) { animation-delay: 0.3s;
}
#loader .bar:nth-child(6):before { transform: scale(0.84);
}
#loader .bar:nth-child(7) { animation-delay: 0.35s;
}
#loader .bar:nth-child(7):before { transform: scale(0.91);
}
#loader .bar:nth-child(8) { animation-delay: 0.4s;
}
#loader .bar:nth-child(8):before { transform: scale(0.96);
}
#loader .bar:nth-child(9) { animation-delay: 0.45s;
}
#loader .bar:nth-child(9):before { transform: scale(0.99);
}
#loader .bar:nth-child(10) { animation-delay: 0.5s;
}
#loader .bar:nth-child(10):before { transform: scale(1);
}
#loader .bar:nth-child(11) { animation-delay: 0.55s;
}
#loader .bar:nth-child(11):before { transform: scale(0.99);
}
#loader .bar:nth-child(12) { animation-delay: 0.6s;
}
#loader .bar:nth-child(12):before { transform: scale(0.96);
}
#loader .bar:nth-child(13) { animation-delay: 0.65s;
}
#loader .bar:nth-child(13):before { transform: scale(0.91);
}
#loader .bar:nth-child(14) { animation-delay: 0.7s;
}
#loader .bar:nth-child(14):before { transform: scale(0.84);
}
#loader .bar:nth-child(15) { animation-delay: 0.75s;
}
#loader .bar:nth-child(15):before { transform: scale(0.75);
}
#loader .bar:nth-child(16) { animation-delay: 0.8s;
}
#loader .bar:nth-child(16):before { transform: scale(0.64);
}
#loader .bar:nth-child(17) { animation-delay: 0.85s;
}
#loader .bar:nth-child(17):before { transform: scale(0.51);
}
#loader .bar:nth-child(18) { animation-delay: 0.9s;
}
#loader .bar:nth-child(18):before { transform: scale(0.36);
}
#loader .bar:nth-child(19) { animation-delay: 0.95s;
}
#loader .bar:nth-child(19):before { transform: scale(0.19);
}
#loader .bar:nth-child(20) { animation-delay: 1s;
}
#loader .bar:nth-child(20):before { transform: scale(0);
}
@keyframes scale { 0% { transform: scale(1); } 50% { /* border-radius: 0; */ transform: scale(1.2); } 100% { transform: scale(1); }
}
Slug loader - Script Codes JS Codes
var $bar = '<div class="bar"></div>';
for (i = 1; i <= 20; i++) { $('#loader').append($bar);
};
Developer | Brandon Kennedy |
Username | brandonkennedy |
Uploaded | September 18, 2022 |
Rating | 3.5 |
Size | 3,481 Kb |
Views | 16,192 |
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 |
CSS Animated Search Box Concepts | 7,072 Kb |
Scrolling helix | 3,776 Kb |
SCSS Tick Marks Function | 3,630 Kb |
Space ship fun | 7,302 Kb |
Digital Static Search Box | 4,148 Kb |
Lazyload.js | 4,007 Kb |
Crooked section dividers | 4,708 Kb |
Browser Detection | 3,803 Kb |
Negative Padding | 4,069 Kb |
More loading | 3,383 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 |
Rrremark.com Overlay Highlighter | Derickruiz | 4,438 Kb |
Arrow Navigation | Hinducows | 1,973 Kb |
Faces SVG animation | ScavengerFrontend | 2,957 Kb |
Direction-icon | Alexandremasy | 3,323 Kb |
Caputre Cam with JS | KimmoCommit | 2,795 Kb |
CSS Bot Confusion | Jpod | 3,456 Kb |
Test | Dviate | 2,668 Kb |
Minimal Material Design Form Input | Koenigsegg1 | 3,076 Kb |
Knob rotation | Alemesre | 2,122 Kb |
Haml Calendar | Katydecorah | 5,643 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!