DEV Community

Cover image for Simple Bootstrap Lightbox
Simon Köhler
Simon Köhler

Posted on

1 1

Simple Bootstrap Lightbox

Just a simple lightbox with Bootstrap that uses Animate.css for image animations, and imagesLoaded to preload images. No jQuery, lightbox script or additional CSS is needed, just some pure JavaScript. All styles and positioning of elements were implemented using pure Bootstrap classes.

Using the Bootstrap standard classes

The example is to show that you can build a quite functional lightbox without an additional lightbox plugin, using the Bootstrap standard classes and scripts.

Of course, you can still optimize it a lot and create your own CSS animations with a few simple steps, for example, to save the use of Animate.css.

Libraries I have used, with great thanks to the respective developers

Your feedback is appreciated

If you like this Simple Bootstrap Lightbox, feel free to leave your feedback. Also, I'm always very happy when others can use my work as the basis for great projects.

What would you improve, add, or do differently?

More Stuff

My website
https://simon-koehler.com

Let's connect on GitHub
https://github.com/koehlersimon

MASK.CSS
https://koehlersimon.github.io/maskcss/

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay