Answer the question
In order to leave comments, you need to log in
How to re-initiate Fotoram after loading ajax content?
Hello, photo frame is not working after ajax load. As I understand it, you need to re-initiate the photo frame. Tell me how
I call the photo frame like this ^
(function () {
$('.fotorama').fotorama();
})
$('.popup-with-form').magnificPopup({
type: 'ajax'
});
Answer the question
In order to leave comments, you need to log in
Try like this:
$('.popup-with-form').magnificPopup({
type: 'ajax',
callbacks: {
ajaxContentAdded: function() {
$('.fotorama').fotorama().destroy();
$('.fotorama').fotorama();
}
}
});
Try to simply call the code in the forehead every second:
$(function() {
setInterval(function() {
$('.fotorama').fotorama();
}, 1000);
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question