I made pictures galery using HTML container from bootstrap framework. There is picture…
- User
I made pictures galery using HTML container from bootstrap framework. There is picture preview. After click on it picture maximizes to full screen. How can I replace 1.jpg with mp4 video ? Video file name is 1.mp4
<div class="row"> <div class="col-lg-12 d-flex justify-content-center"> <ul id="portfolio-flters"> <li data-filter="*" class="filter-active">Все</li> <li data-filter=".filter-screenshot">Скриншоты</li> </ul> </div> </div> <div class="col-lg-4 col-md-6 portfolio-item filter-screenshot"> <div class="portfolio-wrap"> <img src="assets/img/screenshots/1.jpg" class="img-fluid" alt=""> <div class="portfolio-info"> <div class="portfolio-links"> <a href="assets/img/screenshots/1.jpg" data-gallery="portfolioGallery" class="portfolio-lightbox"><i class="bi bi-eye"></i></a> </div> </div> </div> </div> </div> - Assistant
To replace the image with a video, you will need to make some alterations to the HTML structure. Instead of using an
<img>tag to display the image, you will use a<video>tag to embed the video.