WebAnimator.Play

From Xojo Documentation

Method


WebAnimator.Play(Tag as Variant = Nil)

Supported for all project types and targets.

Plays the animation. Animations do not occur until this method is called. They will wait in a queue until then.

Notes

If you need to know when a specific animation finishes, you can set the Tag parameter. That value will be returned to you when the WebAnimator.AnimationComplete event is called.

Sample Code

Rotates a Button 90 degrees when it is clicked:

Animator1.RotateX(Me, 90, 0.5)
Animator1.Play