File: /home/enamadmin/public_html/elearning_plateforme1/theme/academi/amd/build/homeslider.min.js
define("theme_academi/homeslider",["jquery","theme_academi/jquery.sudoSlider"],(function($){var defaults={autoplay:!1,interval:500},Carousel=function(selector,options){var results=$.extend(defaults,options);this.initializeslider(selector,results)};return Carousel.prototype.initializeslider=function(selector,data){var autostopped=!1,sudoSlider=$(selector).sudoSlider({prevNext:!0,prevHtml:".homepage-carousel .prevBtn.carousel-control",nextHtml:".homepage-carousel .nextBtn.carousel-control",speed:1400,ease:"swing",responsive:!0,updateBefore:!0,useCSS:!0,interruptible:!1,numeric:!0,pause:"false"!=data.autoplay&&data.interval,auto:"true"==data.autoplay,customLink:".homepage-carouselLink",afterAnimation:function(t){$(".homecarousel-slide-item.carousel-item").not('[data-slide="'+t+'"]').removeClass("active"),$('.homecarousel-slide-item.carousel-item[data-slide="'+t+'"]').addClass("active"),$(".slide-text").show()},beforeAnimation:function(){!function(){var $this=$(".slide-content .slide-text"),$content=$this.find('.heading-content [data-animation ^= "animated"]'),index=0;if("undefined"!=$content&&""!=$content.length){$content.css({opacity:0});var $time=setInterval((function(){$this=$content;var animEndEv,da=$content.eq(index),ani=da.attr("data-animation");da.addClass(ani),da.css({opacity:1}),++index==$this.length&&clearInterval($time),animEndEv="webkitAnimationEnd animationend",da.each((function(){var $this=$(this),$animationType=$this.data("animation");$this.addClass($animationType).one(animEndEv,(function(){$this.removeClass($animationType)}))}))}),400)}}()}});sudoSlider.mouseenter((function(){sudoSlider.getValue("autoAnimation")?sudoSlider.stopAuto():autostopped=!0})).mouseleave((function(){autostopped||sudoSlider.startAuto()}))},{init:function(selector,options){return new Carousel(selector,options)}}}));
//# sourceMappingURL=homeslider.min.js.map