CSS3 Spinners
How do I make an css3 spinners?
Css3-only spinner animations using 1 element and transforms. What is a css3 spinners? How do you make a css3 spinners? This script and codes were developed by Luuk Lamers on 22 January 2023, Sunday.
CSS3 Spinners - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS3 Spinners</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <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! */ @keyframes rotate{ to{transform:rotate(360deg);}
}
@keyframes rotate2{ from{ transform:rotate(0deg) translateX(4px); } to{ transform:rotate(360deg) translateX(4px); }
}
.make-room{ margin:40px;
}
.left{ float:left;
}
.yin-yang {
width: 96px;
height: 48px;
background: #fff;
border:2px solid black;
border-width: 2px 2px 50px 2px;
border-radius: 100%;
position: relative;
animation: rotate 2s linear infinite;
}
.yin-yang:before {
content: "";
position: absolute;
top: 50%;
left: 0;
background: black;
border-radius: 100%;
width: 48px;
height: 48px;
}
.yin-yang:after {
content: "";
position: absolute;
top: 50%;
left: 50%;
background: #fff;
border-radius: 100%;
width: 48px;
height: 48px;
}
.growing-border{ border:1px solid black; width:100px; height:100px; border-radius:100%; border-width:10px 2px 2px 10px; border-color:black black transparent transparent; animation: rotate 2s linear infinite;
}
.sci-fi{ border:8px solid rgb(0,180,255); width:100px; height:100px; border-radius:100%; border-style:dotted; position:relative;
}
.sci-fi:after{ content: "";
position: absolute;
top: -4px;
left: -8px;
background: white;
border-radius: 100%;
width: 100px;
height: 100px; border:10px solid white; border-width:0px 8px 8px 8px; animation: rotate 4s linear infinite;
}
.sci-fi2{ border:5px solid black; width:100px; height:100px; border-radius:100%; border-style:dotted; position:relative;
}
.sci-fi2:after{ content: "";
position: absolute;
top: -10px;
left: -10px;
background: transparent;
border-radius: 100%;
width: 90px;
height: 90px; border:15px solid white; border-color: rgba(255,255,255,0.5) rgba(255,255,255,0.7) rgba(255,255,255,0.9) rgba(255,255,255,1.0); border-width:15px; animation: rotate 2s linear infinite;
}
.snake{ border:10px solid black; width:100px; height:100px; border-radius:100%; position:relative;
}
.snake:after{ content:""; position:absolute; background:white; top:-10px; left:-10px; width:120px; height:120px; border-radius:100%; animation: rotate2 3s linear infinite;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class='yin-yang make-room left'></div>
<div class='growing-border make-room left'></div>
<div class='sci-fi make-room left'></div>
<div class='sci-fi2 make-room left'></div>
<div class='snake make-room left'></div>
</body>
</html>
CSS3 Spinners - Script Codes CSS Codes
@keyframes rotate{ to{transform:rotate(360deg);}
}
@keyframes rotate2{ from{ transform:rotate(0deg) translateX(4px); } to{ transform:rotate(360deg) translateX(4px); }
}
.make-room{ margin:40px;
}
.left{ float:left;
}
.yin-yang {
width: 96px;
height: 48px;
background: #fff;
border:2px solid black;
border-width: 2px 2px 50px 2px;
border-radius: 100%;
position: relative;
animation: rotate 2s linear infinite;
}
.yin-yang:before {
content: "";
position: absolute;
top: 50%;
left: 0;
background: black;
border-radius: 100%;
width: 48px;
height: 48px;
}
.yin-yang:after {
content: "";
position: absolute;
top: 50%;
left: 50%;
background: #fff;
border-radius: 100%;
width: 48px;
height: 48px;
}
.growing-border{ border:1px solid black; width:100px; height:100px; border-radius:100%; border-width:10px 2px 2px 10px; border-color:black black transparent transparent; animation: rotate 2s linear infinite;
}
.sci-fi{ border:8px solid rgb(0,180,255); width:100px; height:100px; border-radius:100%; border-style:dotted; position:relative;
}
.sci-fi:after{ content: "";
position: absolute;
top: -4px;
left: -8px;
background: white;
border-radius: 100%;
width: 100px;
height: 100px; border:10px solid white; border-width:0px 8px 8px 8px; animation: rotate 4s linear infinite;
}
.sci-fi2{ border:5px solid black; width:100px; height:100px; border-radius:100%; border-style:dotted; position:relative;
}
.sci-fi2:after{ content: "";
position: absolute;
top: -10px;
left: -10px;
background: transparent;
border-radius: 100%;
width: 90px;
height: 90px; border:15px solid white; border-color: rgba(255,255,255,0.5) rgba(255,255,255,0.7) rgba(255,255,255,0.9) rgba(255,255,255,1.0); border-width:15px; animation: rotate 2s linear infinite;
}
.snake{ border:10px solid black; width:100px; height:100px; border-radius:100%; position:relative;
}
.snake:after{ content:""; position:absolute; background:white; top:-10px; left:-10px; width:120px; height:120px; border-radius:100%; animation: rotate2 3s linear infinite;
}
Developer | Luuk Lamers |
Username | xaddict |
Uploaded | January 22, 2023 |
Rating | 3 |
Size | 2,878 Kb |
Views | 4,048 |
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 |
Draw SVG polygon points in css | 2,720 Kb |
CSS object-fit fallback with plain JS | 4,895 Kb |
Lazyload with SVG | 2,977 Kb |
Big text and big gradient | 2,796 Kb |
Continuum logo in pure css | 2,506 Kb |
Progress circle | 2,700 Kb |
3D valve | 2,396 Kb |
Continuum | 2,307 Kb |
Isometric css island | 2,950 Kb |
SVG animated patterns | 2,463 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 |
Find The Penguin | Lelder | 2,212 Kb |
Calendar | Miroot | 2,033 Kb |
Basic jQuery Filter list | Mtedwards | 2,464 Kb |
SVG Scalable Text | Said_FD | 1,451 Kb |
SVG Basics | HipsterBrown | 1,852 Kb |
Simple DevTools | Deegill | 2,511 Kb |
Ripples in water | Nobitagit | 2,704 Kb |
Flat buttons for Eliassen.com | Kdooley89 | 1,737 Kb |
Sassy Buttons | Elyseholladay | 2,299 Kb |
Simple Login Form Template | Banunn | 3,571 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!