Open Ayrinsoft opened 10 years ago
// calculate the distance //_dist = options.width * _page.length + ( options.margin * _page.length );
if (options.orientation === "horizontal") { _dist = options.width * _page.length + (options.margin * _page.length); _animOpts = { scrollLeft: "+=" + _dist }; } else { _dist = options.height * _page.length + (options.margin * _page.length); _animOpts = { scrollTop: "+=" + _dist }; }
on vertical mode you set options.width, replace with height ;)
// calculate the distance //_dist = options.width * _page.length + ( options.margin * _page.length );
if (options.orientation === "horizontal") { _dist = options.width * _page.length + (options.margin * _page.length); _animOpts = { scrollLeft: "+=" + _dist }; } else { _dist = options.height * _page.length + (options.margin * _page.length); _animOpts = { scrollTop: "+=" + _dist }; }
on vertical mode you set options.width, replace with height ;)