Just as a small aside (and I realize this is just an example), but I'd
recommend putting your own effects into a seperate js file (ie.
myeffects.js) and included that along with effects.js.  That way when
you upgrade versions, you don't have to reapply your changes to the
new effects.js.

On 10/18/05, Mark Chadwick <[EMAIL PROTECTED]> wrote:
> For example, throw this in effects.js
>
> Effect.BlindRight = function(element) {
>   $(element).style.width   = '0px';
>   Element.makeClipping(element);
>   Element.show(element);
>   return new Effect.Scale(element, 100,
>     Object.extend({ scaleContent: false,
>       scaleY: false,
>       scaleMode: 'contents',
>       scaleFrom: 0,
>       afterFinish: function(effect) {
>         Element.undoClipping(effect.element);
>       }
>     }, arguments[1] || {})
>   );
> }
>
> BlindLeft will be more difficult.  You'll have to float the div right, and
> call a function similar to above...It'll still clip the right-most content,
> though.
>
> -Mark Chadwick
>
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
>
>
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to