Skip to content

Instantly share code, notes, and snippets.

@brettbuddin
Created January 10, 2012 23:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brettbuddin/1591957 to your computer and use it in GitHub Desktop.
Save brettbuddin/1591957 to your computer and use it in GitHub Desktop.
var lectric_slider = new Lectric();
lectric_slider.init("#featured_images", {
next:".lectric_right_arrow",
previous:".lectric_left_arrow",
tossing: true,
tossFunction: function(x, dx, dt) {
return x + dx * 100 / dt;
},
hooks: {
init: function(s) {
if (!supportsTouch) {
s.element.parent().append(keyboardNav);
setTimeout(function() {
keyboardNav.fadeOut();
}, 1500);
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment