Swiper Elementor
Fri Jan 03 2025 20:49:05 GMT+0000 (Coordinated Universal Time)
Saved by
@rstringa
<script>
/* Esperar a cargar todos los scripts */
if (document.readyState == 'complete') {
startAuditsCarousel();
} else {
document.onreadystatechange = function () {
if (document.readyState === "complete") {
startAuditsCarousel();
}
}
}
function startAuditsCarousel() {
const audits_carosuel = document.querySelector ('#audits_carousel .swiper');
setTimeout(function(){
audits_carosuel.swiper.autoplay.start();
audits_carosuel.swiper.touchEventsData.focusableElements = "input, select, option, textarea, button, video, label, p, .elementor-heading-title"
},10);
audits_carosuel.addEventListener("mouseover", function(){
// console.log("over");
audits_carosuel.swiper.autoplay.stop()
});
audits_carosuel.addEventListener("mouseleave", function(){
// console.log("mouseleave");
audits_carosuel.swiper.autoplay.start()
});
// ['mousedown', 'touchstart', 'pointerdown'].forEach(function (event) {
// audits_carosuel.addEventListener(event, function (e) {
// console.log(event);
// e.stopPropagation();
// }, { passive: true });
// });
};
</script>
content_copyCOPY
Comments