We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8d0a02 commit c6b7a23Copy full SHA for c6b7a23
1 file changed
02 - JS + CSS Clock/index-START.html
@@ -79,7 +79,7 @@
79
80
const hours = now.getHours();
81
console.log(`hours: ${hours}`);
82
- const hoursDegrees = ((hours % 12)/12 * 360 + 90);
+ const hoursDegrees = ((hours / 12) * 360 + 90);
83
hoursHand.style.transform = `rotate(${hoursDegrees}deg)`;
84
85
const minutes = now.getMinutes();
0 commit comments