SVG viewBox and preserveAspectRatio

I've been experimenting with viewBox and preserveAspectRatio recently. Here's a pen that helped me get to grips with it.

image

As ever MDN are a great resource.

Also, found this very useful. With a great interactive demo.