Hi,

the DOM element probably isn't created yet when you're trying to access 
it. Try wrapping the code in an "appear" listener.

Here's the manual page for animations:
http://manual.qooxdoo.org/current/pages/website/css3animation.html

Keep in mind bom.element.Animation isn't intended to be used with 
widgets, however. Depending on which CSS properties you're manipulating, 
the values might be reset by qooxdoo's theming system or they won't be 
synchronized so that the widget's getters return old values. Use at your 
own risk ;)

Regards,
Daniel


On 07/20/2012 12:27 PM, omrihar wrote:
> Hi,
>
> I am trying to use qx.bom.element.Animation.animate to create
> a simple animation on a (rich=true) label. I don't seem to be able
> to find the DOM element of the label to use in the animate call.
> Trying label.getContentElement().getDomElement() returns null,
> even though I see that the element is in the dom tree (using FireBug).
> I also checked label.getContentElement().isIncluded() which returns
> true.
>
> Is it possible to animate a label? Is there a manual entry about animations?
> I have been unable to locate it so far.
>
> Cheers,
> Omri
>
>
>
> --
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/Using-animation-effects-on-a-qx-ui-basic-Label-tp7580694.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to