RSSAmplifier

Sylvain Durand · May 10, 2019

Overlay image in pure CSS

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

There is no native solution within browsers to display, on click, a full screen image. Several Javascript libraries have come to fill this gap: Lightbox (which was a precursor, to the point of giving its name to the concept), Fancybox, PhotoSwipe… These solutions are sometimes heavy, whereas if you are only looking for a simple behavior, a few lines of CSS are enough, and no Javascript code…

Read on sylvaindurand.org

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.