Created
January 5, 2019 09:48
-
-
Save Tsunamijaan/9a41df9e90583d7ee97f0f1d148b8fc3 to your computer and use it in GitHub Desktop.
Infinite animated.css in Owl Carousel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(".all_slides").owlCarousel({ | |
singleItem: true, | |
pagination: false, | |
autoPlay: 5000, | |
theme: "homepage-slider-arrows", | |
navigation: true, | |
addClassActive: true, | |
transitionStyle : "fade", | |
navigationText: ["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"], | |
afterMove: previousslide, | |
beforeMove: nextslide, | |
}); | |
function previousslide() { | |
jQuery(".owl-item.active .single_slider h2").addClass('animated bounce'); | |
} | |
function nextslide() { | |
jQuery(".owl-item .single_slider h2").removeClass('animated bounce'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment