Morph can take a classname as its argument instead of a style hash. So  
if you have defined your .checked class with whatever visual  
attributes you want, then doing this:

$('tr').morph('checked')

will cause it to change smoothly from whatever it looks like now to  
whatever .checked is defined to look like.

Works perfectly here.

Walter

On Jun 4, 2009, at 2:08 PM, david wrote:

>
> Hi Celso,
>
> could you be more precise, because if you add className "checked" and
> morph to class name "checked", there is no animation !
>
>
> --
> david
>
> On 4 juin, 16:26, Celso <cels...@gmail.com> wrote:
>> Hello !
>> I needed something like this:
>>
>> $('tr').addClassName('checked');
>>
>> ====>
>>
>> $('tr').morph('checked');
>>
>> and remove too.
>>
>> Thanks,
>> Celso.
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to