<canvas height="50">
<button text="Show then Fade" onclick="canvas.showText()"/>
<text name="myText" opacity="0.0" bgcolor="#CCCCCC">The Invisible Man</text>
<simplelayout axis="y" spacing="10"/>
<method name="showText">
myText.setAttribute( "opacity", 1.0 );
lz.Timer.addTimer( new LzDelegate( this, "fadeText" ), 3000 );
</method>
<method name="fadeText" args="ignore=null">
myText.animate( "opacity", 0.0, 1000 );
</method>
</canvas>