Today, my colleague shared something about CSS ":target" pseudo class which I never knew before. It matches an element that’s the target of a fragment identifier in the document’s URI. The fragment identifier in a URI comprises a # character followed by an identifier name that matches the value of an id
attribute of an element within the document.
Christian Heilmann has created a demo image gallery using this selector.