Challenge 6: Enhanced Clock 🕰️
Learnings
Understanding Clock Rotation Using CSS Variables
We dynamically create 12-hour markers on the clock face.
Each marker is rotated by 30° (360° / 12).
We use the CSS variable --rotation to rotate each number accordingly.
Example:
...
chaicode-dom-manipulation.hashnode.dev2 min read