Pure CSS Spinning Cogs
How do I make an pure css spinning cogs?
Inspired by the Gearbox logo. What is a pure css spinning cogs? How do you make a pure css spinning cogs? This script and codes were developed by David Dietle on 24 September 2022, Saturday.
Pure CSS Spinning Cogs - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pure CSS Spinning Cogs</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="bod"> <div class="cog"> <div class="spoke"></div> <div class="spoke"></div> <div class="spoke"></div> <div class="spoke"></div> <div class="hole"></div> </div> <div class="cog"> <div class="spoke"></div> <div class="spoke"></div> <div class="spoke"></div> <div class="spoke"></div> <div class="hole"></div> </div> <div class="cog"> <div class="spoke"></div> <div class="spoke"></div> <div class="spoke"></div> <div class="spoke"></div> <div class="hole"></div> </div>
</div>
</body>
</html>
Pure CSS Spinning Cogs - Script Codes CSS Codes
body { background-color: black;
}
#bod { width: 250px; height:250px; position: relative; margin: 20px auto; border-radius:30%; border: solid 10px darkslategray; overflow:hidden; z-index:10000; box-shadow: 0 0 200px darkslategray;
}
.spoke { background-color: grey; position: absolute; height: 175px; width:30px; margin-left: -15px; margin-top: -12.5px; left: 50%; border-radius: 5px; z-index: 10;
}
.spoke + .spoke { transform: rotateZ(45deg);
}
.spoke + .spoke + .spoke { transform: rotateZ(-45deg);
}
.spoke + .spoke + .spoke + .spoke { transform: rotateZ(90deg);
}
.cog { position:absolute; background-color: grey; width: 150px; height: 150px; border-radius: 50%; z-index: 10; animation: spin 5s infinite linear;
}
.cog + .cog { animation-delay:.19s; animation: spin2 5s infinite linear; margin-top: 160px; margin-left:30px;
}
.cog + .cog + .cog { animation: spin 5s infinite linear; margin-top: 65px; margin-left:165px;
}
.hole { position: absolute; width: 130px; height: 130px; margin-left: 10px; margin-top: 10px; background-color: black; border-radius: 50%; z-index: 3000; box-shadow: inset 0 0 90px darkslategray;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); }
}
@keyframes spin2 { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); }
}
Developer | David Dietle |
Username | ddietle |
Uploaded | September 24, 2022 |
Rating | 4 |
Size | 1,825 Kb |
Views | 44,528 |
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 |
Fireflies In The Night Sky | 3,327 Kb |
CSS Flickering Image | 13,709 Kb |
3D Grid | 3,137 Kb |
Random City | 8,204 Kb |
Lights | 2,655 Kb |
Glowing Acid Bloop | 2,904 Kb |
Old Tymey Book | 7,018 Kb |
Waving Rebel Alliance Flag | 2,309 Kb |
Image as Text | 88,679 Kb |
CSS Only Rotating Cube Menu | 2,119 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 |
Button fills | Zubfatal | 5,205 Kb |
SVG Scalable Text | Said_FD | 1,451 Kb |
Css3 slide | Nakome | 3,190 Kb |
Animate elements with fixed gradient | Badabam | 4,406 Kb |
Display properties | Hamzaerbay | 1,886 Kb |
Svg penguin | _massimo | 2,990 Kb |
Firefox Breakout Guide | Quincysoeliman | 2,576 Kb |
Wikipedia Viewer | Codinger | 4,681 Kb |
A Pen by Eka Risyana | Risyana | 3,705 Kb |
Rainbow Drops | Csbarnes | 2,365 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!