Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 399 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 399 Bytes

Analog Clock created using CSS and JavaScript

This code simulates a simple Analog Clock using JavaScript and CSS

Learning points:

  • How to use the Date class
  • Calculate seconds, minutes and hours for clock rotation
  • Use of the rotate method
  • How to use the transform css class for rotation
  • How to use the setInterval method for calling a method every second