This is super cool, and reminds me of when I first learned about <summary><details> tags for some reason.
It also reminds me of this, which sadly loses some charm now that browsers seem to love to hide the full URL:
https://matthewrayfield.com/articles/animating-urls-with-jav...