Style

For any particular style on a region or component, there can be only zero or one effective at a time regardless of its parameters.

When a style is added that is already in effect, the new parameters replace the current parameters.

When adding or removing styles, some scenarios support a transition effect when moving from the current visualization to the new one. These effects leverage the CSS3 specification but do not expose it directly. Therefore, browsers such as IE that do not support CSS3 cannot render these animations.

These can only be specified via the scripting APIs. The APIs are:

....Styles.Remove(style)

....Styles.Remove(style, transitionDuration)

....Styles.Remove(style, transitionDuration, timingFunction)

....Styles.Remove(style, transitionDuration, timingFunction, transitionDelay)

....Styles.Add(style)

....Styles.Add(style, transitionDuration)

....Styles.Add(style, transitionDuration, timingFunction)

....Styles.Add(style, transitionDuration, timingFunction, transitionDelay)

Parameters

  • TransitionDuration:The duration, in milliseconds, that the transition from one style to the next will take to complete. Default value is 0 which this means there is no transition applied.
  • TransitionDelay:The delay, in milliseconds, before the style transition is started. Default value is 0.