SVG Set Tag MDN
document.body.innerHTML = `
click the rounded rect<br>
<svg viewBox="0 0 10 10" width="150" height="150">
<style>
rect { cursor: pointer }
.round { rx: 5px; fill: green; }
</style>
<rect id="me" width="10" height="10" rx="3">
<set attributeName="class" to="round" begin="me.click" dur="2s" />
</rect>
</svg>
`
This is from MDN. Having never seen or used the set
tag before, I thought this was worth a quick post…