Pure CSS Spinning Cogs

Developer
Size
1,825 Kb
Views
44,528

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 Previews

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); }
}
Pure CSS Spinning Cogs - Script Codes
Pure CSS Spinning Cogs - Script Codes
Home Page Home
Developer David Dietle
Username ddietle
Uploaded September 24, 2022
Rating 4
Size 1,825 Kb
Views 44,528
Do you need developer help for Pure CSS Spinning Cogs?

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!

David Dietle (ddietle) 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!