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 fe83039 commit 9747220Copy full SHA for 9747220
02 - JS + CSS Clock/index-FINISHED.html
@@ -81,11 +81,11 @@
81
secondHand.style.transform=`rotate(${secondsDegrees}deg)`;
82
83
constmins=now.getMinutes();
84
-constminsDegrees=((mins/60)*360)+90;
+constminsDegrees=((mins/60)*360)+((seconds/60)*6)+90;
85
minsHand.style.transform=`rotate(${minsDegrees}deg)`;
86
87
consthour=now.getHours();
88
-consthourDegrees=((hour/12)*360)+90;
+consthourDegrees=((hour/12)*360)+((mins/60)*30)+90;
89
hourHand.style.transform=`rotate(${hourDegrees}deg)`;
90
}
91
0 commit comments