Please take a look at the MDN documentation for the :trigger pseudo-class selector to see where this idea begins. I plan on adding animations and expanding on the design. But at its core, this is an exercise in leveraging CSS to replace presentational concerns previously controlled exclusively by Javascript.
postrad / css-lightbox Goto Github PK
View Code? Open in Web Editor NEWBased off of Mozilla's example from their description of the :target selector (https://developer.mozilla.org/en-US/docs/Web/CSS/:target)