Answer the question
In order to leave comments, you need to log in
How to make the Fotorama slider start showing from the first photo after closing the modal window?
Hello! I use fotorama slider in popup window.
Slider code:
<div id="foto" class="overlay js-overlay-thank-you">
<div class="fotorama fotorama-style js-thank-you" data-nav="thumbs" data-auto="false" data-width="800"
data-height="600">
<a href="#close" title="Close" class="close">X</a>
</div>
<div class="close-popup js-close-thank-you"></div>
</div>
$('.fotorama').fotorama({ data: [
{img: 'img/gallery/2/1.jpg'},
{img: 'img/gallery/2/2.jpg'}
] })
$('.sl-fotorama').click(function() {
$('.js-overlay-thank-you').fadeIn();
});
$(document).mouseup(function (e) { // по клику вне попапа
var popup = $('.fotorama');
if (e.target!=popup[0]&&popup.has(e.target).length === 0){
$('.js-overlay-thank-you').fadeOut();
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question