Css clock

Developer
Size
1,789 Kb
Views
50,600

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 Previews

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); }
}
Css clock - Script Codes
Css clock - Script Codes
Home Page Home
Developer Vikas Chauhan
Username vikasford
Uploaded August 27, 2022
Rating 3
Size 1,789 Kb
Views 50,600
Do you need developer help for Css clock?

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!

Vikas Chauhan (vikasford) 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!