Monday, April 8, 2013

[Help Wordpress] API Called Direction


Hi,


i am trying to figure out how to get which direction was called with slider.ev.on(rsBeforeAnimStart) but i can't find the information in the documentation. For example if i click on the right arrow i want to get the information direction / transition: "right". So i can trigger something when the end of the slideshow is reached and one still clicks the right arrow to load the (not existing) next slide.


Thanks in advance.


Update:


I managed to extend the next and prev function for the result i want:



// Extend Prev
slider.prev = function( /* optional_arguments */ ) {
// First Slide
if ( slider.currSlideId+1 == 1 ) {
// First Slide - do something
console.log("Tried to go prev the first slide");
} else {
$.rsProto.prev.call(this /* , optional_arguments */ );
}
};


But i can't trigger the console.log when i drag the slideshow. It seems dragging ignores prev and next methods.



.

help.dimsemenov.com

No comments:

Post a Comment

Search

Other post

[Top WP themes 2013] [Creative] Syncro | Grid Powered WordPress (Creative)
[Creative] Syncro | Grid Powered WordPress (Creative)
A Super Skeleton Theme: 100% More Awesome!Welcome to Syncro! : An feature-rich, easy-to-us...
[Top WP themes 2013] [Creative] BAB: Clean, Responsive Portfolio WordPress Theme (Creative)
[Creative] BAB: Clean
[Creative] BAB: Clean, Responsive Portfolio WordPress Theme (Creative)Back to Home »Creati...
[Top WP themes 2013] [Creative] BAB: Clean, Responsive Portfolio WordPress Theme (Creative)
[Creative] BAB: Clean
[Creative] BAB: Clean, Responsive Portfolio WordPress Theme (Creative)Back to Home »Creati...
[Top WP themes 2013] [Creative] Calisto - Responsive WordPress Theme (Creative)
[Creative] Calisto
Calisto – Responsive Premium WordPress ThemeCalisto is premium responsive WordPress theme ...
[Top WP themes 2013] [Creative] Calisto - Responsive WordPress Theme (Creative)
[Creative] Calisto
Calisto – Responsive Premium WordPress ThemeCalisto is premium responsive WordPress theme ...