It doesnt actually add the class, it changes the styles inline, so you either 
morph it back, or use setStyle.  Good luck!



On Feb 10, 2011, at 12:29 AM, Robert <[email protected]> wrote:

> Don't understand how could I missed this one...
> Now I only need similar thingy for removing class with morph.
> 
> Thanks, Ryan!
> 
> On Feb 9, 4:25 pm, Ryan Florence <[email protected]> wrote:
>> http://mootools.net/docs/core/Fx/Fx.Morph
>> 
>> You can morph to a class definition.
>> 
>> el.morph('.some-class')
>> 
>> On Feb 9, 2011, at 3:02 AM, Robert wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> Thanks!
>> 
>>> But is it a way to read styles from class definition? If I wanted to
>>> make a tween between two classes?
>> 
>>> Something like this:
>>> http://jsfiddle.net/moort/ndHdd/8/
>> 
>>> On Feb 9, 10:37 am, Slik <[email protected]> wrote:
>>>> http://jsfiddle.net/ndHdd/7/
>> 
>>>> On Wed, Feb 9, 2011 at 11:31 AM, Robert <[email protected]> wrote:
>>>>> is there any way to read styles from class definitions?
>>>>> Here it is an example:http://jsfiddle.net/moort/ndHdd/
>>>>> I was thinking about making tween from one color to another - but I
>>>>> don't really know the real color of div?
>> 
>>>>> Thanks,

Reply via email to