TIL: SVG rotate()

The SVG specification has a version of the `rotate()` transform that accepts an additional two arguments that allow you to specify the origin to rotate around without having to `translate` yourself. Otherwise all the transforms are just like CSS.

transform="translate(150, 150),rotate(45),translate(-150, -150)"

transform="rotate(45, 150, 150)"

Author: David Carew

Created: 2023-07-01 Sat 15:45