Skip to content

Instantly share code, notes, and snippets.

@madrobby madrobby/gist:86960
Created Mar 27, 2009

Embed
What would you like to do?
s2.fx.Opacity = Class.create(s2.fx.Element, {
setup: function() {
var from = this.options.from || 0, to = this.options.to || 1;
this.element.setStyle('opacity:'+from);
this.animate('style', this.element, { style: 'opacity:'+to });
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.