Css clock
How do I make an css clock?
What is a css clock? How do you make a css clock? This script and codes were developed by Vikas Chauhan on 27 August 2022, Saturday.
Css clock - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>css clock</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="clock"> <div class="twelve">12</div> <div class="three">3</div> <div class="six">6</div> <div class="nine">9</div> <div class="hour"></div> <div class="minute"></div> <div class="second"></div>
</div>
</body>
</html>
Css clock - Script Codes CSS Codes
.clock
{ background: #FFF; border: 10px solid #7A7A7A; border-radius: 50%; box-sizing: border-box; height:300px; margin: 0 auto; position: relative; width: 300px;
}
.twelve,
.three,
.six,
.nine
{ background: #333; margin:0 auto; position: absolute;
}
.twelve,
.six
{ height: 10px; width: 4px;
}
.three,
.nine
{ height: 4px; width: 10px;
}
.twelve
{ left: 50%; top: -1px;
}
.three
{ right: -1px; top: 50%;
}
.six
{ left: 50%; bottom: -1px;
}
.nine
{ left: -1px; top: 50%;
}
.hour
{ height: 120px; width: 4px; background: #333; position: absolute; left: 50%; top: 20px; animation: tick 43200s infinite linear; -webkit-animation: tick 43200s infinite linear;
}
.minute
{ height: 100px; width: 4px; background: #777; position: absolute; left: 50%; top: 40px; animation: tick 3600s infinite linear; -webkit-animation: tick 3600s infinite linear;
}
.second
{ height: 60px; width: 4px; background: #FC0505; position: absolute; left: 50%; top: 80px; animation: tick 60s infinite linear; -webkit-animation: tick 60s infinite linear;
}
.hour, .minute, .second
{ transform-origin: 2px 100%; -webkit-transform-origin: 2px 100%;
}
@keyframes tick { to { transform: rotate(360deg); }
}
@-webkit-keyframes tick { to { -webkit-transform: rotate(360deg); }
}
Developer | Vikas Chauhan |
Username | vikasford |
Uploaded | August 27, 2022 |
Rating | 3 |
Size | 1,789 Kb |
Views | 50,600 |
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 |
A pure CSS navigation menu | 1,926 Kb |
Xmas tree svg | 2,696 Kb |
Code from CSS-Crash-Course | 1,596 Kb |
Transform | 1,926 Kb |
Working with Ink Framework. It is very good. | 23,843 Kb |
Smooth state animation | 1,541 Kb |
Google in Material Design | 2,648 Kb |
Animated css menu | 1,782 Kb |
Flat Buttons | 1,831 Kb |
Box | 2,006 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 |
Cake | Kennyname | 7,220 Kb |
Clock Face Idea | Chrisburnell | 3,196 Kb |
A form arranged using automatic placement. | Vikasford | 2,103 Kb |
Particle Motion trajectories | Sniejadlik | 5,899 Kb |
Side Sliding Menu CSS | EduardL | 4,388 Kb |
CSS Link Icons with jQuery Titles | Nicwinn | 2,312 Kb |
My Starter Kit For Codepen | Dkdesign | 2,012 Kb |
Css color for svg | Ademilter | 2,392 Kb |
Vanilla modal window | Jasonhowmans | 3,554 Kb |
Front in Aracaju Logo Pure CSS | Shankarcabus | 2,581 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!