Minimal Clock Card

Developer
Size
2,108 Kb
Views
24,288

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 Previews

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();
Minimal Clock Card - Script Codes
Minimal Clock Card - Script Codes
Home Page Home
Developer Insprd
Username insprd
Uploaded September 13, 2022
Rating 3
Size 2,108 Kb
Views 24,288
Do you need developer help for Minimal Clock Card?

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!

Insprd (insprd) Script Codes
Create amazing art & images 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!