Simple CSS Loaders

Size
3,841 Kb
Views
26,312

How do I make an simple css loaders?

CSS powered loading animations. Because animations are cool.. What is a simple css loaders? How do you make a simple css loaders? This script and codes were developed by Jon Christensen on 03 August 2022, Wednesday.

Simple CSS Loaders Previews

Simple CSS Loaders - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Simple CSS Loaders</title> <script src="http://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"> <link rel='stylesheet prefetch' href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400'> <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! */ .loader { display: block; margin: 2em auto; padding: 0; position: relative;
}
.li { background: #000; display: inline-block;
}
.loader.simple li { background: #000; display: inline-block; height: 1em; width: 1em; border-radius: 100%; opacity: 0.25; animation: simpleLoad 2s infinite linear;
}
.loader.circles li { background: #000; display: inline-block; height: 1em; width: 1em; border-radius: 100%; animation: circleLoad 2s infinite linear; opacity: 0;
}
.loader.fb li { background: #000; display: inline-block; height: 1em; width: 0.25em; border: 2px solid #666; animation: fbLoad 2s infinite linear; opacity: 0.25;
}
.loader.in-out li { background: #000; display: inline-block; height: 1em; width: 1em; border-radius: 100%; animation: inOutLoad 1.5s infinite linear; position: absolute; margin-left: -0.5em; opacity: 0;
}
.loader li:nth-child(1) { animation-delay: 0.1s;
}
.loader li:nth-child(2) { animation-delay: 0.2s;
}
.loader li:nth-child(3) { animation-delay: 0.3s;
}
.loader li:nth-child(4) { animation-delay: 0.4s;
}
.loader li:nth-child(5) { animation-delay: 0.5s;
}
@keyframes simpleLoad { 0% { opacity: 1; } 100% { opacity: 0; }
}
@keyframes circleLoad { 0% { opacity: 0; transform: scale(0.8); } 10% { opacity: 1; transform: scale(1.25); } 100% { opacity: 0; transform: scale(0); }
}
@keyframes fbLoad { 0% { opacity: 1; transform: scaleY(2); } 50% { transform: scaleY(1); } 100% { opacity: 0.25; }
}
@keyframes inOutLoad { 0% { transform: translateX(-20em) scale(0.1); } 20% { opacity: 0; } 25% { opacity: 1; transform: translateX(-5em); } 50% { transform: scale(1.5); } 75% { opacity: 1; transform: translateX(5em); } 80% { opacity: 0; } 100% { transform: translateX(20em) scale(0.1); }
}
html { width: 100%; height: 100%; background: radial-gradient(circle, #fff 0%, #aaa 100%) no-repeat; overflow-x: hidden; overflow-y: hidden;
}
body { text-align: center; display: table; width: 100%; height: 100%; overflow-x: hidden; overflow-y: hidden; font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
}
#wrap { box-sizing: border-box; display: table-cell; vertical-align: middle;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div id="wrap">
<ul class="loader simple"> <li></li> <li></li> <li></li> <li></li> <li></li>
</ul>
<ul class="loader circles"> <li></li> <li></li> <li></li> <li></li> <li></li>
</ul>
<ul class="loader fb"> <li></li> <li></li> <li></li> <li></li> <li></li>
</ul> <ul class="loader in-out"> <li></li> <li></li> <li></li> <li></li> <li></li> </ul>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>

Simple CSS Loaders - Script Codes CSS Codes

.loader { display: block; margin: 2em auto; padding: 0; position: relative;
}
.li { background: #000; display: inline-block;
}
.loader.simple li { background: #000; display: inline-block; height: 1em; width: 1em; border-radius: 100%; opacity: 0.25; animation: simpleLoad 2s infinite linear;
}
.loader.circles li { background: #000; display: inline-block; height: 1em; width: 1em; border-radius: 100%; animation: circleLoad 2s infinite linear; opacity: 0;
}
.loader.fb li { background: #000; display: inline-block; height: 1em; width: 0.25em; border: 2px solid #666; animation: fbLoad 2s infinite linear; opacity: 0.25;
}
.loader.in-out li { background: #000; display: inline-block; height: 1em; width: 1em; border-radius: 100%; animation: inOutLoad 1.5s infinite linear; position: absolute; margin-left: -0.5em; opacity: 0;
}
.loader li:nth-child(1) { animation-delay: 0.1s;
}
.loader li:nth-child(2) { animation-delay: 0.2s;
}
.loader li:nth-child(3) { animation-delay: 0.3s;
}
.loader li:nth-child(4) { animation-delay: 0.4s;
}
.loader li:nth-child(5) { animation-delay: 0.5s;
}
@keyframes simpleLoad { 0% { opacity: 1; } 100% { opacity: 0; }
}
@keyframes circleLoad { 0% { opacity: 0; transform: scale(0.8); } 10% { opacity: 1; transform: scale(1.25); } 100% { opacity: 0; transform: scale(0); }
}
@keyframes fbLoad { 0% { opacity: 1; transform: scaleY(2); } 50% { transform: scaleY(1); } 100% { opacity: 0.25; }
}
@keyframes inOutLoad { 0% { transform: translateX(-20em) scale(0.1); } 20% { opacity: 0; } 25% { opacity: 1; transform: translateX(-5em); } 50% { transform: scale(1.5); } 75% { opacity: 1; transform: translateX(5em); } 80% { opacity: 0; } 100% { transform: translateX(20em) scale(0.1); }
}
html { width: 100%; height: 100%; background: radial-gradient(circle, #fff 0%, #aaa 100%) no-repeat; overflow-x: hidden; overflow-y: hidden;
}
body { text-align: center; display: table; width: 100%; height: 100%; overflow-x: hidden; overflow-y: hidden; font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
}
#wrap { box-sizing: border-box; display: table-cell; vertical-align: middle;
}
Simple CSS Loaders - Script Codes
Simple CSS Loaders - Script Codes
Home Page Home
Developer Jon Christensen
Username JMChristensen
Uploaded August 03, 2022
Rating 3
Size 3,841 Kb
Views 26,312
Do you need developer help for Simple CSS Loaders?

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!

Jon Christensen (JMChristensen) 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!