Skip to content

Instantly share code, notes, and snippets.

@malsup
Created July 18, 2012 20:46
Show Gist options
  • Save malsup/3138779 to your computer and use it in GitHub Desktop.
Save malsup/3138779 to your computer and use it in GitHub Desktop.
scrollLeft transition effect for cycle lite
$.fn.cycle.transitions.scrollLeft = function($cont, $slides, opts) {
$cont.css('overflow','hidden');
var w = $cont.width();
opts.cssBefore.left = w;
opts.cssBefore.top = 0;
opts.animIn.left = 0;
opts.animOut.left = 0-w;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment