public class ColorAnimation extends TractionAnimation
Constructor and Description |
---|
ColorAnimation(Element[] elm,
String cssProperty,
RgbaColor fromColor,
RgbaColor toColor)
Creates a ColorAnimation
|
Modifier and Type | Method and Description |
---|---|
protected void |
onUpdate(double progress) |
setPosition, setPositionAtEnd, setPositionAtStart
public ColorAnimation(Element[] elm, String cssProperty, RgbaColor fromColor, RgbaColor toColor)
elm
- The Elements to modifycssProperty
- The property to modify, e.g. color or backgroundColorfromColor
- The color from which to start the transitiontoColor
- The color at the end of the transitionCopyright © 2015. All Rights Reserved.