Skip to content

Slancerk/Analog-clock-with-Js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Analog Clock

Credits: Thanks to Code with Harry bhaiya, Learning a lot with you...

Contributing

Here is my first project, .....This is basically for learning purpose..

🚀 About Me

Hey up! I am souvik, this is my very first project with HTML,CSS and Javascript.

I am very happy to say that , I was literally nothing just 1-2 months back but now as I am taking more and more knowledge, I can say that I am on the way to a Full stack developer.. Thanks to those youtubers who made it possible...

Roadmap

  • Learn HTML,CSS and Javascript.
  • start enjoying.

Javascript code

Copy the code

 setInterval(()=>{
 d= new Date();
 htime= d.getHours()
 mtime=d.getMinutes()
 stime= d.getSeconds()

 hrotaion= 30*htime + mtime/2;
 mrotaion= 6* mtime;
 srotation=6 * stime;

 hour.style.transform=`rotate(${hrotaion}deg)`
 minute.style.transform=`rotate(${mrotaion}deg)`
 second.style.transform=`rotate(${srotation}deg)`

},1000);

Contact:

For contact:

Linkedin:https://www.linkedin.com/in/souvik-paul-653a291b9/

About

Basic analog clock , made with HTML, CSS and JS...

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published