Skip to content

Instantly share code, notes, and snippets.

@ryanflorence
Created April 14, 2010 03:56
Show Gist options
  • Save ryanflorence/365434 to your computer and use it in GitHub Desktop.
Save ryanflorence/365434 to your computer and use it in GitHub Desktop.
['pushTest2', function(previous, next, duration, instance){
var distance = instance.element.getStyle('width').toInt();
next.setStyle('left', distance);
new Fx.Elements.start({
0: { left: [-distance] },
1: { left: [0] }
});
return this;
}],
Fx.Elements.implement({
setElements: function(elements){
this.elements = this.subject = $$(elements);
return this;
}
});
SlideShow.helpers = {
fxElements: new Fx.Elements,
};
['pushTest2', function(previous, next, duration, instance){
var distance = instance.element.getStyle('width').toInt();
next.setStyle('left', distance);
SlideShow.helpers.fxElements.setElements([previous, next]);
SlideShow.helpers.fxElements.start({
0: { left: [-distance] },
1: { left: [0] }
});
return this;
}],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment