CSS3 Spinners

Developer
Size
2,878 Kb
Views
4,048

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 Previews

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;
}
CSS3 Spinners - Script Codes
CSS3 Spinners - Script Codes
Home Page Home
Developer Luuk Lamers
Username xaddict
Uploaded January 22, 2023
Rating 3
Size 2,878 Kb
Views 4,048
Do you need developer help for CSS3 Spinners?

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!

Luuk Lamers (xaddict) Script Codes
Create amazing love letters 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!