-
re-exploring JS-less modals using
:target
selector, this codepen still proving to be usefulThe
:target
CSS pseudo-class represents a unique element (the target element) with anid
matching the URL’s fragment. -
Interestingly it will also work with query params too eg
exammple.com/#?test=test