Yes, there is! Check out the CSS :target pseudo-class. If you're using anchor tags with href attributes that start with a hashtag (navigating within the document instead of between documents), then the URL changes, adding the hashtag and href target at the end. CSS can detect these changes!
You can expand any section that is targeted:
section:target {
/* expand the section */
}
Let me know if you have more questions!
Ian

Ian M.
03/15/20
Emmanuel E.
I don't quite understand that, sorry. Any chance you could put it simpler terms?03/14/20