Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix hour hand position
  • Loading branch information
Sergiy Dybskiy authored Dec 13, 2016
commit 0391e68c63e1466f8fbbe7a334d093f266be5a3f
2 changes: 1 addition & 1 deletion 02 - JS + CSS Clock/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
minsHand.style.transform = `rotate(${minsDegrees}deg)`;

const hour = now.getMinutes();
const hourDegrees = ((mins / 12) * 360) + 90;
const hourDegrees = ((hour / 12) * 360) + 90;
hourHand.style.transform = `rotate(${hourDegrees}deg)`;
}

Expand Down