Lightweight & framework independent JavaScript image / video viewer

View on Github

Remote Image Gallery

Click thumbnails to launch gallery. Loading spinner & captions are built-in.

A gallery can also be opened from a single element using an array of images.

Videos

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

Individual Images

Specify a remote source, or pass in an element alone in to enlarge its current image.

Script grabs the background 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 on Unsplash | "Towers of Pfeiffer" video by Grant Porter (CC-BY)