CSS Clock
How do I make an css clock?
An animated clock with pure CSS. What is a css clock? How do you make a css clock? This script and codes were developed by APinix on 11 January 2023, Wednesday.
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="wrapper center"> <div class="timer"></div>
</div>
</body>
</html>
CSS Clock - Script Codes CSS Codes
* { margin: 0; padding: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
}
body { background: #323a44;
}
.wrapper { width: 200px; height: 200px;
}
.center { margin: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0;
}
/* Timer */
.timer { width: 100%; height: 100%; background-color: transparent; border: 8px solid #fff; border-radius: 50%; position: relative; }
.timer:after, .timer:before { position: absolute; content: ""; background-color: #fff;
}
.timer:after { width: 40%; height: 8px; border-radius: 5px; top: 50%; left: 50%; -webkit-transform-origin: 4px 4px; -moz-transform-origin: 4px 4px; transform-origin: 4px 4px; -webkit-animation: minhand 2s linear infinite; -moz-animation: minhand 2s linear infinite; animation: minhand 2s linear infinite;
}
.timer:before { width: 20%; height: 8px; border-radius: 5px; top: 50%; left: 50%; -webkit-transform-origin: 4px 4px; -moz-transform-origin: 4px 4px; transform-origin: 4px 4px; -webkit-animation: hrhand 8s linear infinite; -moz-animation: hrhand 8s linear infinite; animation: hrhand 8s linear infinite;
}
@-webkit-keyframes minhand { 0%{-webkit-transform:rotate(0deg)} 100%{-webkit-transform:rotate(360deg)}
}
@-moz-keyframes minhand { 0%{-moz-transform:rotate(0deg)} 100%{-moz-transform:rotate(360deg)}
}
@keyframes minhand { 0%{transform:rotate(0deg)} 100%{transform:rotate(360deg)}
}
@-webkit-keyframes hrhand { 0%{-webkit-transform:rotate(0deg)} 100%{-webkit-transform:rotate(360deg)}
}
@-moz-keyframes hrhand { 0%{-moz-transform:rotate(0deg)} 100%{-moz-transform:rotate(360deg)}
}
@keyframes hrhand { 0%{transform:rotate(0deg)} 100%{transform:rotate(360deg)}
}
Developer | APinix |
Username | aPinix |
Uploaded | January 11, 2023 |
Rating | 3 |
Size | 1,807 Kb |
Views | 6,072 |
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 |
Fire on Resize Finish | 1,952 Kb |
IOS7 Flat Toggle | 1,854 Kb |
A Pen by aPinix | 3,573 Kb |
AppStore Flat Hollow Badge | 39,044 Kb |
Wheel Menu | 2,626 Kb |
Pure CSS Tooltip | 2,815 Kb |
Guided Tour Tooltip | 2,906 Kb |
Blur Hover Effect | 2,995 Kb |
SASS Clock | 2,755 Kb |
CSS Infinite 360 | 5,564 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 |
A Pen by Bryan | Brydave | 2,286 Kb |
Import shader in three.js | Khangeldy | 2,636 Kb |
Cloudy Spiral CSS animation | Hakimel | 6,587 Kb |
CSS3 Fullscreen Background Slideshow | Leetech | 3,435 Kb |
Heatmap Color Scales | Stevepepple | 2,331 Kb |
Simple star rating using js and data-uri | TheEnd | 5,795 Kb |
CSS Variables | Jdsteinbach | 4,759 Kb |
Main page display | BarryKe | 4,562 Kb |
CSS Org Chart | Appirio-ux | 3,882 Kb |
Learning canvas drawing | Aurer | 2,204 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!