Last active
September 12, 2023 09:49
-
-
Save johnmccole/be88602733a4496a725bfa35c7bf113e to your computer and use it in GitHub Desktop.
Add a modal trigger to an <a> tag, add slide-to on the <img> tag.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a class="-inline-block" href="#" data-bs-toggle="modal" data-bs-target="#imageModal"> | |
<img class="img-fluid animate__animated fadeIn animate__slow" onclick="showModal()" src="{!! $img['url'] !!}" alt="{!! $img['alt'] !!}" data-bs-target="#imageCarousel" data-bs-slide-to="{!! $loop->index !!}"/> | |
</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment