GraffitiSuite Docs
Docs
Graffitianimator
Loading document parsing libraries...
# GraffitiAnimator Class Inherits GraffitiWebUIControl ## About Easily animate elements of your pages to draw users' attention or enhance experience. ## Compatibility ### Framework API Version | 1.0 | 2.0 | | :---: | :---: | | True | True | ### Web | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ## Enumerations | Name | Value | Description | | --- | :---: | --- | | EffectColorProperty | BackgroundColor <br> BorderBottomColor <br> BorderLeftColor <br> BorderRightColor <br> BorderTopColor <br> ForeColor <br> ColumnRuleColor <br> TextDecorationColor <br> TextEmphasisColor <br> OutlineColor | Support modifiable color properties. | | EffectDirection | Up <br> Down <br> Left <br> Right <br> Vertical <br> Horizontal | Supported effect directions. | | EffectOperation | Show <br> Hide <br> Toggle <br> Apply | Supported effect operations. | | EffectScaleDirection | Both <br> Vertical <br> Horizontal | Supported effect scale directions. | | EffectScaleOriginX | Left <br> Right <br> Middle | Supported effect scale origin points on the X axis. | | EffectScaleOriginY | Bottom <br> Top <br> Center | Supported effect scale origin points on the Y axis. | | EffectScaleType | Both <br> Box <br> Content | Supported scaling types. | ## Methods | Name | Parameters | Return Type | Description | | --- | :---: | :---: | --- | | Animate | strObject as String <br> strCommand as String | (None) | Begins the animation. | | Attributes | Hidden | DirectionToString | | | Attributes | Hidden | EffectColorPropertyToString | | | NewAnimatedObject | theControl as WebControl | GraffitiAnimatorObject | Created a new animator object referencing the supplied WebControl. All of the work is done via the GraffitiWebAnimatorObject. | | Attributes | Hidden | OperationToString | | ## Shared Methods | Name | Parameters | Return Type | Description | | --- | :---: | :---: | --- | | HTMLHeader | CurrentSession as WebSession | String | | ## Examples ### Position and Fade in a Container This example shows how to effectively chain animations with GraffitiWebAnimator. Starting with a Container off-screen, or whose Visible property is True, this snippet will hide it, move it in to place, then fade it in for a really nice effect. ``` Dim animContainer As GraffitiAnimatorObject = GraffitiAnimator1.NewAnimatedObject( ContainerControl1 )._ Fade( GraffitiAnimator.EffectOperation.Hide, 1 )._ Position( 100, 100, 1 )._ Fade( GraffitiAnimator.EffectOperation.Show, 1000 ) ```