Hacker News new | ask | show | jobs
by bryanrasmussen 659 days ago
I think you could probably cause it to move on click by using the target selector, like in this old article here that is probably a bit out of date nowadays https://blog.logrocket.com/dynamism-and-css-calculations/

>But there is a pseudo-class in the location category that I don’t often see used: the target pseudo-class, which allows us to style a part of the page that is the currently active target. In other words, if we have a link that leads to a part of the page, we can style that part of the page when the link is clicked.

1 comments

thank you for your suggestion. will explore the target selector to see what can be done.