Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 869 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 869 Bytes

Analog-clock with digital

design by ganesh Animated Analog clock with digital indan standerd time zone

==>> Animated Analog Clock using HTML,CSS & javaScript

   setInterval(() => {
d = new Date();
htime = d.getHours();
mtime = d.getMinutes();
stime = d.getSeconds();
hrotation = 30*htime + mtime/2;
mrotation = 6*mtime;
srotation = 6*stime;

hour.style.transform = `rotate(${hrotation}deg)`;
minute.style.transform = `rotate(${mrotation}deg)`;
second.style.transform = `rotate(${srotation}deg)`;

}, 1000);

<< open in your brouser clone this rapo and dubble click on index.html just one stap >>

look like Screenshot 2023-02-27 110915