Displaying an image over another image
I have a carousel showing images. Some of them are thumbs of youtube video in that case i want an image of a play button to be displayed over the thumb image to show that it is a video not a simple image.
<div class="carousel-inner">
@foreach($realisation->images as $key => $img)
@if($img->type == 'image')
<div class="item ">
@if(File::exists($img->image))
<img src="" class="image" alt="realisation"/>
@endif
</div>
@else
<div class="item ">
<a href="" data-lity>
<img src="" class="image" alt="realisation">
<img src="" alt="">
</a>
</div>
@endif
@endforeach
</div>
from Laravel Questions and Answers https://laravelquestions.com/laravel/displaying-an-image-over-another-image/
via Lzo Media
No comments:
Post a Comment