Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45e08db commit bf3beedCopy full SHA for bf3beed
02 - JS + CSS Clock/index-FINISHED.html
@@ -85,7 +85,7 @@
85
minsHand.style.transform = `rotate(${minsDegrees}deg)`;
86
87
const hour = now.getHours();
88
- const hourDegrees = ((mins / 12) * 360) + 90;
+ const hourDegrees = ((hour / 12) * 360) + 90;
89
hourHand.style.transform = `rotate(${hourDegrees}deg)`;
90
}
91
02 - JS + CSS Clock/index.html
@@ -84,8 +84,8 @@
84
const minsDegrees = ((mins / 60) * 360) + 90;
- const hour = now.getMinutes();
+ const hour = now.getHours();
0 commit comments