you can save the initial styles: http://jsfiddle.net/CjNyJ/1/

Also it's better to have one Fx.Morph instance for each element (rather
than creating a new one each time you mouseenter).


On Thu, Mar 28, 2013 at 5:13 PM, Roo <kangar...@yahoo.co.uk> wrote:

> Hi all,
>
> Just looking for a bit of help about what to do when you want to reverse
> the effects of a morph.
>
> http://jsfiddle.net/CjNyJ/
>
> I'm highlighting table rows when the mouse rollovers and I'd like to use a
> gentle transition rather than apply a class immediately and then remove it
> (incidentally that works fine).
>
> If I use Morph to morph to the hover over class I get a lovely transition.
> The CSS changes are applied within the style property of the element.
>
> Is it possible to reverse the effects of a morph..?
>
> In the JSFiddle above I have tried removing the style property on mouse
> out. This works ok but if you move the mouse quickly the style never gets
> removed and the element remains, in this case, blue, and it will also
> remove any styles that happen to be applied to the row for whatever reason.
>
> Is it possible to ensure that the style is removed on mouseout when the
> mouse is moving quickly..?
>
> Thanks
> Rolf
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "MooTools Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mootools-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"MooTools Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mootools-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to