You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- by default the object rotates in the middle of the object: use transform-origin: x%; to move the origin on the X axis.
4
+
- set default rotate at 90° to have them face upwards
5
+
- set a transition for the animation not to be too hard: transition: all 0.5s;
6
+
- use a transition-timing-funtion to update the way the object moves
7
+
8
+
2. JS:
9
+
- setInterval to set the interval at which the hands should move
10
+
- A function to set the date. You have a date you find which second you are currently in then you transform into degress (make sure that you add 90° to the total because we added that to the CSS)
11
+
- then you add the style transform rotate by variable degrees.
0 commit comments