Loader dots in pure CSS and 1 element
How do I make an loader dots in pure css and 1 element?
This pen is inspired by http://codepen.io/desandro/pen/HhdrA but uses only 1 element and pure CSS. Thus, any element can be converted into this type of loader by toggling the class. What is a loader dots in pure css and 1 element? How do you make a loader dots in pure css and 1 element? This script and codes were developed by Girish Sharma on 02 August 2022, Tuesday.
Loader dots in pure CSS and 1 element - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Loader dots in pure CSS and 1 element</title> <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! */ /* Demo specific style begin */
.loader-dots { position: absolute; top: calc(50% - 10px); left: calc(50% - 40px);
}
/* Demo specific style end */
.loader-dots:before, .loader-dots:after { height: 20px; width: 45px; background-image: radial-gradient(closest-side, #111 100%, transparent), radial-gradient(closest-side, #111 100%, transparent); background-position: 0%, 100%; background-size: 20px 20px, 20px 20px; background-repeat: no-repeat; position: absolute; animation-duration: 0.8s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-name: spin, onOff; content: '';
}
.loader-dots:before { animation-direction: normal, reverse;
}
.loader-dots:after { right: 0px; animation-direction: reverse, normal;
}
.loader-dots { height: 20px; width: 70px; background-image: radial-gradient(closest-side, #111 100%, transparent), radial-gradient(closest-side, #111 100%, transparent); background-position: 0%, 100%; background-size: 20px 20px, 20px 20px; background-repeat: no-repeat; position: absolute; animation: toggle 0.8s ease-in-out infinite;
}
@keyframes spin { 0% { transform: rotate(0deg) } 50% { transform: rotate(180deg) } 100% { transform: rotate(180deg) }
}
@keyframes onOff { 0% { opacity: 0; } 49% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 1; }
}
@keyframes toggle { 0% { background-size: 0px 0px, 20px 20px } 49.9% { background-size: 0px 0px, 20px 20px } 50% { background-size: 20px 20px, 0px 0px } 100% { background-size: 20px 20px, 0px 0px }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="loader-dots"></div>
</body>
</html>
Loader dots in pure CSS and 1 element - Script Codes CSS Codes
/* Demo specific style begin */
.loader-dots { position: absolute; top: calc(50% - 10px); left: calc(50% - 40px);
}
/* Demo specific style end */
.loader-dots:before, .loader-dots:after { height: 20px; width: 45px; background-image: radial-gradient(closest-side, #111 100%, transparent), radial-gradient(closest-side, #111 100%, transparent); background-position: 0%, 100%; background-size: 20px 20px, 20px 20px; background-repeat: no-repeat; position: absolute; animation-duration: 0.8s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-name: spin, onOff; content: '';
}
.loader-dots:before { animation-direction: normal, reverse;
}
.loader-dots:after { right: 0px; animation-direction: reverse, normal;
}
.loader-dots { height: 20px; width: 70px; background-image: radial-gradient(closest-side, #111 100%, transparent), radial-gradient(closest-side, #111 100%, transparent); background-position: 0%, 100%; background-size: 20px 20px, 20px 20px; background-repeat: no-repeat; position: absolute; animation: toggle 0.8s ease-in-out infinite;
}
@keyframes spin { 0% { transform: rotate(0deg) } 50% { transform: rotate(180deg) } 100% { transform: rotate(180deg) }
}
@keyframes onOff { 0% { opacity: 0; } 49% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 1; }
}
@keyframes toggle { 0% { background-size: 0px 0px, 20px 20px } 49.9% { background-size: 0px 0px, 20px 20px } 50% { background-size: 20px 20px, 0px 0px } 100% { background-size: 20px 20px, 0px 0px }
}
Developer | Girish Sharma |
Username | grssam |
Uploaded | August 02, 2022 |
Rating | 3.5 |
Size | 2,500 Kb |
Views | 36,432 |
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 |
Tilted Horizontal 3D spinner in pure CSS | 2,912 Kb |
XBox SmartGlass Loading Animation in CSS using 1 element | 2,183 Kb |
Google Plus loading animation in pure CSS | 4,572 Kb |
Horizontal 3D spinner in pure CSS | 2,642 Kb |
A Pen by Girish Sharma | 1,618 Kb |
More loader dots in pure CSS and single HTML element | 2,685 Kb |
Single DIV Loading ring in Pure CSS | 3,937 Kb |
Line, Square, Cube, Hypercube via folding in pure CSS | 5,810 Kb |
Metro style loading animation in pure CSS | 3,237 Kb |
Gmail like loading animation in pure CSS | 2,845 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 |
Table border-collapse property | Maxds | 1,672 Kb |
DevCamp 2014 - Denver Public Library | See8ch | 5,033 Kb |
DFF Website | Hawcubite | 10,123 Kb |
Angular-HAML | Cwacht | 2,022 Kb |
Hoi hoi | JohnTheCat | 7,248 Kb |
CSS Google Now | Jackmoran | 3,196 Kb |
Angular Route | Arun_v606 | 1,837 Kb |
IbrahimJabbari-Effect21 | Ibrahimjabbari | 1,882 Kb |
Easing | GreenSock | 2,043 Kb |
A Pen by Bryan | Brydave | 2,286 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!