Created
April 14, 2010 03:56
-
-
Save ryanflorence/365434 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
['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; | |
}], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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