Minimal Clock Card
How do I make an minimal clock card?
What is a minimal clock card? How do you make a minimal clock card? This script and codes were developed by Insprd on 13 September 2022, Tuesday.
Minimal Clock Card - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Minimal Clock Card</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <div class="clock"> <div class="second"></div> <div class="hour"></div> <div class="minute"></div> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.0.0/moment.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Minimal Clock Card - Script Codes CSS Codes
.container { height: 300px; width: 350px; background-color: #0b0b0b;
}
.clock { height: 150px; width: 150px; -webkit-transform-origin: 50% 50%; transform-origin: 50% 50%; background: url('https://i.imgur.com/H1G4kL6.png'); background-size: 150px; margin: 65px 100px;
}
.hour { background: url('https://i.imgur.com/QDLX5Mh.png');
}
.minute { background: url('https://i.imgur.com/ETT9XWJ.png');
}
.second { background: url('https://i.imgur.com/GikvDlf.png');
}
.hour, .minute, .second { height: 150px; width: 150px; -webkit-transform-origin: 50% 50%; transform-origin: 50% 50%; position: absolute; background-size: 150px;
}
body { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; width: 100%; height: 100vh; background: #0b0b0b;
}
Minimal Clock Card - Script Codes JS Codes
function clock() { var t = moment(), s = t.seconds() * 6, a = t.minutes() * 6, o = t.hours() % 12 / 12 * 360 + (a / 12); $(".hour").css("transform", "rotate(" + o + "deg)"); $(".minute").css("transform", "rotate(" + a + "deg)"); $('.second').css("transform", "rotate(" + s + "deg)");
}
function refreshClock() { clock(), setTimeout(refreshClock, 1000)
}
refreshClock();
Developer | Insprd |
Username | insprd |
Uploaded | September 13, 2022 |
Rating | 3 |
Size | 2,108 Kb |
Views | 24,288 |
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 |
Centered Isotope masonry | 2,243 Kb |
Bolt action | 3,023 Kb |
Loading bars | 2,187 Kb |
Loading anim | 1,791 Kb |
Brick a link with CSS | 1,417 Kb |
Simple Spinning Logo Idea | 1,647 Kb |
Animated Link Underline | 1,875 Kb |
Infinite Carousel | 2,478 Kb |
Hover Animation from UNIQLO | 3,772 Kb |
Aurora Effect | 6,624 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 |
Mini Profile | Frytyler | 3,828 Kb |
MAD9013 - Float Images with Content | Mad-d | 2,220 Kb |
12 DAYS OF XMAS | Proto78 | 2,313 Kb |
Fireworks Show | Arianalynn | 3,048 Kb |
Segments mouse following | Nosir | 2,909 Kb |
Simple Accordion | Wearebold | 3,683 Kb |
Improve | Gavra | 1,652 Kb |
Free css icon set v2 - one div | Ben_jammin | 0 Kb |
Personal Website Redesign v2.0 | DevItWithDavid | 5,168 Kb |
Flexbox Test | Icutpeople | 2,486 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!