Sorry, it appears your browser does not support registering custom properties via @property (in order to animate them), so the animation here won't work properly. As of February 2023, this is supported in Chromium browsers (and has been supported for half a decade) and in Safari ( just in! ). If you cannot check it out in either, here is a recording of what it should look like.