<canvas height="50" width="100%"> <view width="80" height="30" bgcolor="red" onclick="go.doStart()"> <text align="center" valign="middle">Click Me!</text> <animator name="go" attribute="x" to="100" duration="1000" motion="easein" start="false"/> </view> </canvas> <!-- easeboth, easein, easeout, and linear. -->