Autor | Zpráva | ||
---|---|---|---|
Lisoe Profil * |
#1 · Zasláno: 16. 5. 2019, 20:15:44
Zdravím,
chtěl bych se zeptat, narazil jsem na jednu šablonu, která využívá pro slider owlCarousel. Nastavení má následující: (function($) { //Function to animate slider captions function doAnimations(elems) { //Cache the animationend event in a variable var animEndEv = 'webkitAnimationEnd animationend'; elems.each(function() { var $this = $(this), $animationType = $this.data('animation'); $this.addClass($animationType).one(animEndEv, function() { $this.removeClass($animationType); }); }); } //Variables on page load var $myCarousel = $('#carousel-example-generic'), $firstAnimatingElems = $myCarousel.find('.carousel-item:first').find("[data-animation ^= 'animated']"); //Initialize carousel $myCarousel.carousel(); //Animate captions in first slide on page load doAnimations($firstAnimatingElems); //Pause carousel $myCarousel.carousel('pause'); //Other slides to be animated on carousel slide event $myCarousel.on('click slide.bs.carousel', function(e) { var $animatingElems = $(e.relatedTarget).find("[data-animation ^= 'animated']"); doAnimations($animatingElems); }); })(jQuery); Každopádně vůbec si nevím rady, jak se zde nastavují parametry. Normálě bych to řešil: $('.custom1').owlCarousel({ animateOut: 'slideOutDown', animateIn: 'flipInX', items:1, margin:30, stagePadding:30, smartSpeed:450 }); Mohl bych poprosit o nasměrování, jak to zde řešit? Moc děkuji za rady |
||
Keeehi Profil |
#2 · Zasláno: 16. 5. 2019, 21:26:42
Zkusil bych ty parametry narvat do volání
carousel na řádku 21.
|
||
Lisoe Profil * |
#3 · Zasláno: 16. 5. 2019, 22:32:51
Keeehi:
Zkoušel jsem takto: $myCarousel.carousel({ autoplay: true, smartSpeed: 1200, nav: false }); Ale bohužel to ty parametry nereflektuje. |
||
Časová prodleva: 6 let
|
0