Skip to main content

Selection Animation Speed

Animation Speed when select random frames​

info

Note that this page describes how to configure the animation duration it takes when the user goes forward more than 1 frame or goes backward.

(see Frame Animation Speed for frame based animation speed)

Default Behavior​

When the user select any frame that's not previous frame + 1 or previous frame is the last frame and the new frame is 1, frameSelectionSpeed will be used to determine its duration.

By default, this value is 1 second.

Try to go from frame 1 to frame 4 or go from frame 3 to frame 2 in the following scene:

new GlobalConfigGenerator()
.withFrameSpeed(1, 10)
.withFrameSpeed(2, 10)
.withFrameSpeed(3, 10)
.withFrameSpeed(4, 10)

No animation when select random frames​

Simply configure frameSelectionSpeed to 0 yields no animation:

new GlobalConfigGenerator()
.withFrameSpeed(1, 10)
.withFrameSpeed(2, 10)
.withFrameSpeed(3, 10)
.withFrameSpeed(4, 10)
.frameSelectionSpeed(0)

0.3 seconds animation when select random frames​

new GlobalConfigGenerator()
.withFrameSpeed(1, 10)
.withFrameSpeed(2, 10)
.withFrameSpeed(3, 10)
.withFrameSpeed(4, 10)
.frameSelectionSpeed(0.5)