Selectable and more importantly searchable text is one of the reasons why I occasionally open Large SVG diagrams in browser instead of the usual image viewer.
Right. I'd always just seen SVG as an image format. Interesting that browsers treat text inside them just like plain text.
I mean, it is just plain text inside some XML tags. It'd be weirder if they treated it like text in a photo
You can actually embed HTML inside an SVG using the foreignObject element.
I’ve done some cool things with the built-in SMIL animation too. You can control it with JavaScript and CSS… Watch out for the filters though — they can be pretty heavy compute-wise.