Clock loading

Size
2,351 Kb
Views
6,072

How do I make an clock loading?

Fiddle of loading animation based on a clock. What is a clock loading? How do you make a clock loading? This script and codes were developed by António Capelo on 15 December 2022, Thursday.

Clock loading Previews

Clock loading - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Clock loading</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="main"> <h1 class="title">Loading...</h1> <div class="clock"> <div class="seconds"></div> <div class="minutes"></div> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js'></script>
</body>
</html>

Clock loading - Script Codes CSS Codes

html { background: #999778;
}
.main { position: relative; width: 100%; height: 420px; text-align: center;
}
.main .clock { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 200px; height: 200px; border: 20px solid #5C484E; border-radius: 50%;
}
.main .clock .seconds { height: 40%; width: 1%; background: #5C484E; border: 5px solid #5C484E; border-radius: 8px; position: absolute; top: 50%; left: 50%; transform-origin: 10% 0%; animation: rotate-second linear 2s infinite;
}
.main .clock .minutes { height: 35%; width: 1%; background: #5C484E; border: 6px solid #5C484E; border-radius: 8px; position: absolute; top: 50%; left: 50%; transform-origin: 10% 0%; animation: rotate-minutes linear 8s infinite;
}
.main .title { color: #4C4C44; font-size: 40px; font-family: Arial; margin: 20px auto;
}
@keyframes rotate-second { 0% { transform: rotate(0deg) translate(-50%, -90%); } 100% { transform: rotate(360deg) translate(-50%, -90%); }
}
@keyframes rotate-minutes { 0% { transform: rotate(0deg) translate(-50%, -90%); } 100% { transform: rotate(360deg) translate(-50%, -90%); }
}
Clock loading - Script Codes
Clock loading - Script Codes
Home Page Home
Developer António Capelo
Username capelo
Uploaded December 15, 2022
Rating 3
Size 2,351 Kb
Views 6,072
Do you need developer help for Clock loading?

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!

António Capelo (capelo) Script Codes
Create amazing video scripts 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!