JavaScript Clocks: Animating SVG

In our last article, we looked at the very basics of SVG: just enough to draw a hand on a blank clock face. In this article, we’ll be looking at how to animate those elements using JavaScript. Let’s take a look at where we left off last time. <html> <head> <title> Clock </title> </head> <body> <svg> <rect x=”50%” y=”5%” width=”1%” height=”45%” transform=”rotate(45, 50, 50)” /> … Continue reading JavaScript Clocks: Animating SVG