jquery - How to customize orbit-caption animation -
i'm using foundation 5 framework. i'm having problem changing default animation , speed of orbit-caption.
is there knows how change animation slide fade captions? , if there is, possible using attribute data-options?
i saw documentation there different ways customize orbit slider can't find caption. tried looking similar problems here in stackoverflow can't find same 1 me. guys can me. in advance
i manage somehow adding event listener
here how did it:
$(".orbit-next, .orbit-prev").click(function() { $('.orbit-caption').fadeout(100); $('.orbit-caption').fadein(1500); });
or can use events provided documentation
$("#banner").on("before-slide-change.fndtn.orbit", function(event) { $('.orbit-caption').fadeout(100); }); $("#banner").on("after-slide-change.fndtn.orbit", function(event, orbit) { $('.orbit-caption').fadein(1500); });
if of have better suggestion on how properly, please so. i'd happy learn new :)
Comments
Post a Comment