Super lightweight & framework independent JavaScript image / video viewer

View on Github

Remote Images

Click thumbnails to load larger images. Loading spinner & captions are built-in.

Videos

Supports Youtube, Vimeo, and direct links. The popup can be triggered by any element. For example, click here for a sneezing panda

Local Images

Normal image elements resized with css

Elements with background-images. Script extracts the image automatically.

Error Handling

If your remote link is 404, or the display element throws an error, the user will receive an alert.

If the vimeo / youtube URL is incorrect, the embed is shown with the error.

All images found at Unsplash | "Towers of Pfeiffer" video by Grant Porter (CC-BY)