Create HTML and CSS Real Clock

Create Real Clock with HTML and CSS language. you can create real-world shapes using html and css languges.

HTML and CSS Clock

HTML & CSS are very popular languages and both are very powerful because you cannot create a website without knowledge of HTML and CSS, so in this today article we will create a real-world object using Pure CSS so we will create a clock object below is the complete source code

html and css real clock


[Download Source Code ##download##]

Follow the below steps:

  1. index.html
    [<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Create Simple Watch In HTML5 && CSS3</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="watch"> <span></span> </div> </body> </html>]

2. style.css

    [body{ background-color: #262626; } .watch{ position: absolute; transform: translate(-50%, -50%); top: 50%; left: 50%; width: 200px; height: 200px; background: url(watch.png); border:25px solid #eee; -webkit-border-radius: 30%; -moz-border-radius: 30%; -ms-border-radius: 30%; -o-border-radius: 30%; border-radius: 30%; -webkit-box-shadow: inset 0 0 20px rgba(0,0,0,0.5); box-shadow: inset 0 0 20px rgba(0,0,0,0.5); } .watch::before{ position: absolute; content: ""; top: 50%; left: 50%; width: 90px; height: 6px; background: #575353; -webkit-border-radius: 6px; -moz-border-radius: 6px; -ms-border-radius: 6px; -o-border-radius: 6px; border-radius: 6px; animation: animate 60s infinite; -webkit-animation: animate 60s infinite; -moz-animation: animate 60s infinite; -ms-animation: animate 60s infinite; transform-origin: left; } @keyframes animate{ 0%{transform: rotate(0deg);} 100%{transform: rotate(360deg);} } .watch::after{ position: absolute; content: ""; top: 50%; left: 50%; width: 60px; height: 6px; background: #575353; -webkit-border-radius: 6px; -moz-border-radius: 6px; -ms-border-radius: 6px; -o-border-radius: 6px; border-radius: 6px; animation: second 3600s infinite; -webkit-animation: second 3600s infinite; -moz-animation: second 3600s infinite; -ms-animation: second 3600s infinite; transform-origin: left; } @keyframes second{ 0%{transform: rotate(0deg);} 100%{transform: rotate(360deg);} } span{ position: absolute; left: 49%; top: 50%; width: 15px; height: 15px; background: #2e2e2e; -webkit-border-radius: 50%; -moz-border-radius: 50%; -ms-border-radius: 50%; -o-border-radius: 50%; border-radius: 50%; z-index: 1; }]
3. Now save your file and preview your code in a browser and you were done!


COMMENTS

Name

ajax,1,HTML & CSS,11,PHP,6,
ltr
item
webtipstricks: Create HTML and CSS Real Clock
Create HTML and CSS Real Clock
Create Real Clock with HTML and CSS language. you can create real-world shapes using html and css languges.
https://2.bp.blogspot.com/-szj3iBHTxcU/WtOFMQoZ4bI/AAAAAAAABg8/gYVzjsMO5fg-Mx0ea--bGdQo0JNssHwogCLcBGAs/s640/PHP%2BfILE%2BUPLOAD%2BWITH%2BVALIDATIONS%2B%25281%2529-min.png
https://2.bp.blogspot.com/-szj3iBHTxcU/WtOFMQoZ4bI/AAAAAAAABg8/gYVzjsMO5fg-Mx0ea--bGdQo0JNssHwogCLcBGAs/s72-c/PHP%2BfILE%2BUPLOAD%2BWITH%2BVALIDATIONS%2B%25281%2529-min.png
webtipstricks
http://www.webtipstricks.com/2017/10/html-css-clock.html
http://www.webtipstricks.com/
http://www.webtipstricks.com/
http://www.webtipstricks.com/2017/10/html-css-clock.html
true
4027471107773963481
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy