Clock Face Idea

Developer
Size
3,196 Kb
Views
26,312

How do I make an clock face idea?

A simple idea I had for an analog watch face. Demo'd it up.. What is a clock face idea? How do you make a clock face idea? This script and codes were developed by Chris Burnell on 16 September 2022, Friday.

Clock Face Idea Previews

Clock Face Idea - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Clock Face Idea</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Open+Sans:600'> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ html, body { position: relative; height: 100%; color: #333; font: 400 normal 16px/1em "Open Sans", serif;
}
.clock-numbers,
.clock-hand-container { display: block; width: 400px; height: 400px; position: absolute; top: 50%; left: 50%; margin: -200px 0 0 -200px; padding: 0; border-radius: 50%; border: 6px solid transparent;
}
.clock-numbers { background-color: #ddd; background-image: linear-gradient(#ddd 0%, #999 100%); list-style: none; border-color: rgba(0, 0, 0, 0.6);
}
.clock-numbers li { display: block; position: absolute; top: 0; left: 50%; width: 30px; height: 200px; box-sizing: border-box; margin-left: -15px; text-align: center; transform-origin: bottom;
}
.clock-numbers li:nth-child(2) { transform: rotate3d(0, 0, 1, 30deg); padding-top: 5px;
}
.clock-numbers li:nth-child(3) { transform: rotate3d(0, 0, 1, 60deg); padding-top: 10px;
}
.clock-numbers li:nth-child(4) { transform: rotate3d(0, 0, 1, 90deg); padding-top: 15px;
}
.clock-numbers li:nth-child(5) { transform: rotate3d(0, 0, 1, 120deg); padding-top: 20px;
}
.clock-numbers li:nth-child(6) { transform: rotate3d(0, 0, 1, 150deg); padding-top: 25px;
}
.clock-numbers li:nth-child(7) { transform: rotate3d(0, 0, 1, 180deg); padding-top: 30px;
}
.clock-numbers li:nth-child(8) { transform: rotate3d(0, 0, 1, 210deg); padding-top: 35px;
}
.clock-numbers li:nth-child(9) { transform: rotate3d(0, 0, 1, 240deg); padding-top: 40px;
}
.clock-numbers li:nth-child(10) { transform: rotate3d(0, 0, 1, 270deg); padding-top: 45px;
}
.clock-numbers li:nth-child(11) { transform: rotate3d(0, 0, 1, 300deg); padding-top: 50px;
}
.clock-numbers li:nth-child(12) { transform: rotate3d(0, 0, 1, 330deg); padding-top: 55px;
}
.clock-numbers li:nth-child(13) { padding-top: 60px;
}
.clock-numbers li:nth-child(14) { transform: rotate3d(0, 0, 1, 30deg); padding-top: 65px;
}
.clock-numbers li:nth-child(15) { transform: rotate3d(0, 0, 1, 60deg); padding-top: 70px;
}
.clock-numbers li:nth-child(16) { transform: rotate3d(0, 0, 1, 90deg); padding-top: 75px;
}
.clock-numbers li:nth-child(17) { transform: rotate3d(0, 0, 1, 120deg); padding-top: 80px;
}
.clock-numbers li:nth-child(18) { transform: rotate3d(0, 0, 1, 150deg); padding-top: 85px;
}
.clock-numbers li:nth-child(19) { transform: rotate3d(0, 0, 1, 180deg); padding-top: 90px;
}
.clock-numbers li:nth-child(20) { transform: rotate3d(0, 0, 1, 210deg); padding-top: 95px;
}
.clock-numbers li:nth-child(21) { transform: rotate3d(0, 0, 1, 240deg); padding-top: 100px;
}
.clock-numbers li:nth-child(22) { transform: rotate3d(0, 0, 1, 270deg); padding-top: 110px;
}
.clock-numbers li:nth-child(23) { transform: rotate3d(0, 0, 1, 300deg); padding-top: 115px;
}
.clock-numbers li:nth-child(24) { transform: rotate3d(0, 0, 1, 330deg); padding-top: 120px;
}
.clock-hand { background-color: #333; background-image: linear-gradient(#555 0%, #555 60px, #444 65px, #333 70px, #333 100%); font-size: 200px; width: 6px; margin: 5% auto 0; height: 45%; animation: rotateHand 12s steps(24, end) infinite; transform-origin: bottom; border-radius: 50% 50% 2px 2px;
}
@keyframes rotateHand { to { transform: rotate3d(0, 0, 1, 720deg); height: 10%; margin-top: 40%; }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <ul class="clock-numbers"> <li>0</li> <li>1</li> <li>2</li> <li>3</li> <li>4</li> <li>5</li> <li>6</li> <li>7</li> <li>8</li> <li>9</li> <li>10</li> <li>11</li> <li>12</li> <li>13</li> <li>14</li> <li>15</li> <li>16</li> <li>17</li> <li>18</li> <li>19</li> <li>20</li> <li>21</li> <li>22</li> <li>23</li>
</ul>
<div class="clock-hand-container"> <div class="clock-hand"></div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>

Clock Face Idea - Script Codes CSS Codes

html, body { position: relative; height: 100%; color: #333; font: 400 normal 16px/1em "Open Sans", serif;
}
.clock-numbers,
.clock-hand-container { display: block; width: 400px; height: 400px; position: absolute; top: 50%; left: 50%; margin: -200px 0 0 -200px; padding: 0; border-radius: 50%; border: 6px solid transparent;
}
.clock-numbers { background-color: #ddd; background-image: linear-gradient(#ddd 0%, #999 100%); list-style: none; border-color: rgba(0, 0, 0, 0.6);
}
.clock-numbers li { display: block; position: absolute; top: 0; left: 50%; width: 30px; height: 200px; box-sizing: border-box; margin-left: -15px; text-align: center; transform-origin: bottom;
}
.clock-numbers li:nth-child(2) { transform: rotate3d(0, 0, 1, 30deg); padding-top: 5px;
}
.clock-numbers li:nth-child(3) { transform: rotate3d(0, 0, 1, 60deg); padding-top: 10px;
}
.clock-numbers li:nth-child(4) { transform: rotate3d(0, 0, 1, 90deg); padding-top: 15px;
}
.clock-numbers li:nth-child(5) { transform: rotate3d(0, 0, 1, 120deg); padding-top: 20px;
}
.clock-numbers li:nth-child(6) { transform: rotate3d(0, 0, 1, 150deg); padding-top: 25px;
}
.clock-numbers li:nth-child(7) { transform: rotate3d(0, 0, 1, 180deg); padding-top: 30px;
}
.clock-numbers li:nth-child(8) { transform: rotate3d(0, 0, 1, 210deg); padding-top: 35px;
}
.clock-numbers li:nth-child(9) { transform: rotate3d(0, 0, 1, 240deg); padding-top: 40px;
}
.clock-numbers li:nth-child(10) { transform: rotate3d(0, 0, 1, 270deg); padding-top: 45px;
}
.clock-numbers li:nth-child(11) { transform: rotate3d(0, 0, 1, 300deg); padding-top: 50px;
}
.clock-numbers li:nth-child(12) { transform: rotate3d(0, 0, 1, 330deg); padding-top: 55px;
}
.clock-numbers li:nth-child(13) { padding-top: 60px;
}
.clock-numbers li:nth-child(14) { transform: rotate3d(0, 0, 1, 30deg); padding-top: 65px;
}
.clock-numbers li:nth-child(15) { transform: rotate3d(0, 0, 1, 60deg); padding-top: 70px;
}
.clock-numbers li:nth-child(16) { transform: rotate3d(0, 0, 1, 90deg); padding-top: 75px;
}
.clock-numbers li:nth-child(17) { transform: rotate3d(0, 0, 1, 120deg); padding-top: 80px;
}
.clock-numbers li:nth-child(18) { transform: rotate3d(0, 0, 1, 150deg); padding-top: 85px;
}
.clock-numbers li:nth-child(19) { transform: rotate3d(0, 0, 1, 180deg); padding-top: 90px;
}
.clock-numbers li:nth-child(20) { transform: rotate3d(0, 0, 1, 210deg); padding-top: 95px;
}
.clock-numbers li:nth-child(21) { transform: rotate3d(0, 0, 1, 240deg); padding-top: 100px;
}
.clock-numbers li:nth-child(22) { transform: rotate3d(0, 0, 1, 270deg); padding-top: 110px;
}
.clock-numbers li:nth-child(23) { transform: rotate3d(0, 0, 1, 300deg); padding-top: 115px;
}
.clock-numbers li:nth-child(24) { transform: rotate3d(0, 0, 1, 330deg); padding-top: 120px;
}
.clock-hand { background-color: #333; background-image: linear-gradient(#555 0%, #555 60px, #444 65px, #333 70px, #333 100%); font-size: 200px; width: 6px; margin: 5% auto 0; height: 45%; animation: rotateHand 12s steps(24, end) infinite; transform-origin: bottom; border-radius: 50% 50% 2px 2px;
}
@keyframes rotateHand { to { transform: rotate3d(0, 0, 1, 720deg); height: 10%; margin-top: 40%; }
}
Clock Face Idea - Script Codes
Clock Face Idea - Script Codes
Home Page Home
Developer Chris Burnell
Username chrisburnell
Uploaded September 16, 2022
Rating 3.5
Size 3,196 Kb
Views 26,312
Do you need developer help for Clock Face Idea?

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!

Chris Burnell (chrisburnell) Script Codes
Create amazing sales emails 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!