public/assets/js/script.js
/**
		 * @desc Toggle swiper animations on active slides
		 * @param {object} swiper - swiper slider
		 */
@desc Toggle swiper animations on active slides
@param {object} swiper - swiper slider
@desc Toggle swiper animations on active slides @param { object } swiper - swiper slider
function toggleSwiperCaptionAnimation(swiper) {
			var prevSlide = $(swiper.container).find("[data-caption-animate]"),
					nextSlide = $(swiper.slides[swiper.activeIndex]).find("[data-caption-animate]"),
					delay,
					duration,
					nextSlideItem,
					prevSlideItem;
			for (var i = 0; i < prevSlide.length; i++) {
				prevSlideItem = $(prevSlide[i]);
				prevSlideItem.removeClass("animated")
						.removeClass(prevSlideItem.attr("data-caption-animate"))
						.addClass("not-animated");
			}
			var tempFunction = function (nextSlideItem, duration) {
				return function () {
					nextSlideItem
							.removeClass("not-animated")
							.addClass(nextSlideItem.attr("data-caption-animate"))
							.addClass("animated");
					if (duration) {
						nextSlideItem.css('animation-duration', duration + 'ms');
					}
				};
			};
			for (var i = 0; i < nextSlide.length; i++) {
				nextSlideItem = $(nextSlide[i]);
				delay = nextSlideItem.attr("data-caption-delay");
				duration = nextSlideItem.attr('data-caption-duration');
				if (!isNoviBuilder) {
					if (delay) {
						setTimeout(tempFunction(nextSlideItem, duration), parseInt(delay, 10));
					} else {
						tempFunction(nextSlideItem, duration);
					}
				} else {
					nextSlideItem.removeClass("not-animated")
				}
			}
		}
function toggleSwiperCaptionAnimation ( swiper ) { var prevSlide = $ ( swiper . container ) . find ( "[data-caption-animate]" ) , nextSlide = $ ( swiper . slides [ swiper . activeIndex ] ) . find ( "[data-caption-animate]" ) , delay , duration , nextSlideItem , prevSlideItem ; for ( var i = 0 ; i < prevSlide . length ; i ++ ) { prevSlideItem = $ ( prevSlide [ i ] ) ; prevSlideItem . removeClass ( "animated" ) . removeClass ( prevSlideItem . attr ( "data-caption-animate" ) ) . addClass ( "not-animated" ) ; } var tempFunction = function ( nextSlideItem , duration ) { return function ( ) { nextSlideItem . removeClass ( "not-animated" ) . addClass ( nextSlideItem . attr ( "data-caption-animate" ) ) . addClass ( "animated" ) ; if ( duration ) { nextSlideItem . css ( 'animation-duration' , duration + 'ms' ) ; } } ; } ; for ( var i = 0 ; i < nextSlide . length ; i ++ ) { nextSlideItem = $ ( nextSlide [ i ] ) ; delay = nextSlideItem . attr ( "data-caption-delay" ) ; duration = nextSlideItem . attr ( 'data-caption-duration' ) ; if ( ! isNoviBuilder ) { if ( delay ) { setTimeout ( tempFunction ( nextSlideItem , duration ) , parseInt ( delay , 10 ) ) ; } else { tempFunction ( nextSlideItem , duration ) ; } } else { nextSlideItem . removeClass ( "not-animated" ) } } }
@desc Toggle swiper animations on active slides
 @param {object} swiper - swiper slider
@desc Toggle swiper animations on active slides @param { object } swiper - swiper slider