
- Udemy bootstrap 4 photox images code#
- Udemy bootstrap 4 photox images download#
- Udemy bootstrap 4 photox images free#
The classes “wow fadeInUp / fadeInDown” are not needed, I have added them only for the animations. You can read more about all these attributes in the Bootstrap documentation for each component (Modal and Carousel) which I have linked to above. The “data-target” attributes have the “id” of the elements that they must open: the modal and the carousel, respectively “#myModal” and “#m圜arousel”.

I use the same images for both the gallery and the lightbox, but you can also use different images, with different sizes, etc.

For the videos, I have used 2 image previews: we don’t embed videos here, we will do that only in the lightbox.Īlso, make sure to use the same aspect ratio for all the images, I have used an aspect ratio of 16:9. The gallery is just a collection of images organized in 2 rows and 3 columns. So, let’s start by creating the gallery, here is the code:
Udemy bootstrap 4 photox images download#
If you want to see all the code, you can find it in the file “index.html” when you download the template below.
Udemy bootstrap 4 photox images code#
I will show only the code of the gallery, not that of the other sections of the page. We will use the Bootstrap Modal and Carousel components, which will do the most work. We don’t have very much CSS and JavaScript code here, although the little code we have is very important (more on that later). The biggest part to understand in this tutorial is the HTML code.
Udemy bootstrap 4 photox images free#

The gallery will showcase some images and videos that will open in a lightbox when the user clicks on any of them. Welcome to another tutorial here on AZMIND! Today we will create a Lightbox Image and Video Gallery using the Bootstrap framework.
