Maybe, if one were to create an object off screen, run addClass to add  
the style, then use getStyle to read it back, and then apply that as  
the argument to Morph. Seems like a lot of work, but since Morph uses  
getStyle and setStyle internally, that's what will have to happen (I  
think).

Walter

On Nov 27, 2008, at 12:50 PM, Diodeus wrote:

>
> Is it possible to specify a CSS class name instead of a style for
> Effect.Morph?
>
> This doesn't work, I wish it would:
>
> new Effect.Morph('test',{className:'med',duration:.2})

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to