Hi,
I'm using the Image carousel pro and the Testimonial Pro Addons.
For both I notice, especially on a smarthpone that the page is jumping up and down, because the text is never exactly the same hight.
I already found a solution in the archive of the forum for desktops, by setting the minimal hight, but as mentioned there as well, that doesn't work well for smartphones because of the many different resolutions.
I remember from an old template a developer wrote for me that he solved that with a piece of code in the js file, that when the carousel was not visible, it would stop rotating.
This was the code he used:
if (!$modu.length)
return;
var itemtop = $modu.offset().top;
var scrolltop = jQuery(window).scrollTop();
if ($modu.hasClass("hover") || (scrolltop - itemtop) > 400) {
console.log("menu pauze " )
setTimeout(anchor_rotation, 500);
return;
}
Would it be possible to add this to the Page Builder scripts to solve the jumping? And if so, where should I put it?