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