-
Notifications
You must be signed in to change notification settings - Fork 1.8k
new direction parameter #233
Comments
The latest code (https://github.com/fancyapps/fancyBox/zipball/master) contains feature that allows to specify direction, like -
Possible directions - up / right / down / left Option
|
Thats a nice feature. So I dont need the custom transitions any more. Is there also a way to change the next direction from right to left as an option. In the main script this would mean
|
There is no currently such option, do you really need it? Btw, you can rewrite any method. If you would include this snippet after including fancybox.js file then default direction would be "up" - $.fancybox.next = function ( direction ) {
if (!direction) {
direction = 'up';
}
if ($.fancybox.current) {
$.fancybox.jumpto($.fancybox.current.index + 1, direction, 'next');
}
}; |
@fancyapps I don't understand how to use the |
Is there any example how to use the new direction parameter, e.g. as an update to http://jsfiddle.net/xZBBS/
The text was updated successfully, but these errors were encountered: