Simple loader
How do I make an simple loader?
What is a simple loader? How do you make a simple loader? This script and codes were developed by Kasper Mikiewicz on 21 November 2022, Monday.
Simple loader - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Simple loader</title> <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! */ .loading { position: relative;
}
.loading:after { content: ''; position: absolute; z-index: 100; left: 50%; top: 50%; margin: -.5em 0 0 -.5em; width: 1em; height: 1em; font-size: 1.5em; border-right: .1em solid #bbc0ca; border-bottom: .1em solid #f0f1f4; border-top: .1em solid #bbc0ca; border-radius: 3em; box-sizing: border-box; animation: spin 1s infinite linear; transition: 1s ease;
}
.loading.is-loaded:after { opacity: 0; visibility: hidden;
}
@keyframes spin { from {transform:rotate(0deg);} to {transform:rotate(360deg);}
}
/* Other style */
body { padding: 1%; text-align: center;
}
a { font-family: sans-serif; text-decoration: none; color: #666; display: inline-block; padding: .5em 1em; margin: 1em; background: #3498db; color: #fff; border-radius: 3px;
}
.box { display: inline-block; width: 200px; height: 80px; background: #eee;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="box loading js-loader-1"></div>
<p> <a href="#loader-1" class="js-finish-loading">Trigger loading end</a>
</p> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Simple loader - Script Codes CSS Codes
.loading { position: relative;
}
.loading:after { content: ''; position: absolute; z-index: 100; left: 50%; top: 50%; margin: -.5em 0 0 -.5em; width: 1em; height: 1em; font-size: 1.5em; border-right: .1em solid #bbc0ca; border-bottom: .1em solid #f0f1f4; border-top: .1em solid #bbc0ca; border-radius: 3em; box-sizing: border-box; animation: spin 1s infinite linear; transition: 1s ease;
}
.loading.is-loaded:after { opacity: 0; visibility: hidden;
}
@keyframes spin { from {transform:rotate(0deg);} to {transform:rotate(360deg);}
}
/* Other style */
body { padding: 1%; text-align: center;
}
a { font-family: sans-serif; text-decoration: none; color: #666; display: inline-block; padding: .5em 1em; margin: 1em; background: #3498db; color: #fff; border-radius: 3px;
}
.box { display: inline-block; width: 200px; height: 80px; background: #eee;
}
Simple loader - Script Codes JS Codes
$('.js-finish-loading').on('click', function() { var id = $(this).attr('href').substr(1); $('.js-' + id).addClass('is-loaded');
});
Developer | Kasper Mikiewicz |
Username | Idered |
Uploaded | November 21, 2022 |
Rating | 3.5 |
Size | 2,645 Kb |
Views | 12,144 |
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 |
Pure CSS3 Tags | 4,052 Kb |
Notifications | 3,250 Kb |
Dropdown menu | 3,350 Kb |
Vue.js based Todo list | 5,092 Kb |
Universal focus, hover, active state for buttons | 2,439 Kb |
DragToIncDec | 2,489 Kb |
Animated underline | 2,593 Kb |
Pure CSS modal box | 3,364 Kb |
Flat switch | 2,555 Kb |
Comments thread | 3,601 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 |
A Pen by boilzzz | Boilzzz | 2,761 Kb |
Em Test | Rodesco | 1,784 Kb |
A Pen by Matt Popovich | Mpopv | 3,349 Kb |
OnScreenAction | Ozgursagiroglu | 2,647 Kb |
Practice using Wixel | Emnk | 3,057 Kb |
Octopus Bar iPad App Interactions | Davidkpiano | 6,735 Kb |
Table border-collapse property | Maxds | 1,672 Kb |
Simple DevTools | Deegill | 2,511 Kb |
My Starter Kit For Codepen | Dkdesign | 2,012 Kb |
Right Click Menu | Anodpixels | 2,252 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!