I wonder if it is possible to use the current state/class of an anchor link to trigger an animation?
I am trying to recreate the sidebar in-page navigation you can find here:
A sticky sidebar navigation with links to anchors on the page. I would like to trigger an animation on the current link block when scrolling the anchor object into view.
Obviously, I can make a separate animation for each link block, triggered by the anchor scrolling into view, but it doesn’t seam like a good solution. It would require one unique animation for each link.