1 parent 38a754c commit cd4ed23Copy full SHA for cd4ed23
2 files changed
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 = ((hours / 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