public class ShakeTransition extends CachedTimelineTransition
Port of Shake from Animate.css by Dan Eden
@keyframes shake { 0%, 100% {transform: translateX(0);} 10%, 30%, 50%, 70%, 90% {transform: translateX(-10px);} 20%, 40%, 60%, 80% {transform: translateX(10px);} }
node, timeline, WEB_EASE
Constructor and Description |
---|
ShakeTransition(javafx.scene.Node node)
Create new ShakeTransition
|
ShakeTransition(javafx.scene.Node node,
javafx.util.Duration duration)
Create new ShakeTransition
|
Modifier and Type | Method and Description |
---|---|
protected void |
starting()
Called when the animation is starting
|
hideNode, interpolate, isOpacityInterpolated, pause, stopping
getCachedInterpolator, getInterpolator, getParentTargetNode, interpolatorProperty, setInterpolator
autoReverseProperty, currentRateProperty, currentTimeProperty, cycleCountProperty, cycleDurationProperty, delayProperty, getCuePoints, getCurrentRate, getCurrentTime, getCycleCount, getCycleDuration, getDelay, getOnFinished, getRate, getStatus, getTargetFramerate, getTotalDuration, isAutoReverse, jumpTo, jumpTo, onFinishedProperty, play, playFrom, playFrom, playFromStart, rateProperty, setAutoReverse, setCycleCount, setCycleDuration, setDelay, setOnFinished, setRate, setStatus, statusProperty, stop, totalDurationProperty
public ShakeTransition(javafx.scene.Node node)
node
- The node to affectpublic ShakeTransition(javafx.scene.Node node, javafx.util.Duration duration)
node
- The node to affectduration
- The duration of this Transition.protected void starting()
CachedTimelineTransition
starting
in class CachedTimelineTransition