Skip to main content
Rive home page
Search...
⌘K
Ask AI
Support
Get Started
Get Started
Search...
Navigation
Artboards
Animation
Home
Editor
Scripting
App Runtimes
Game Runtimes
Feature Support
Tutorials
Case Studies
Community
Blog
Early Access
Scripting
Getting Started
Demos
Creating Scripts
Protocols (Script Types)
Data Binding
Script Inputs
Pointer Events
Debugging
Keyboard Shortcuts
Scripting API
Artboards
Animation
Artboard
NodeData
NodeReadData
PointerEvent
ViewModel
Color
DataValue
Gradient
Image
Interfaces
Mat2d
Paint
Path
Renderer
Vec2d
On this page
Fields
duration
Methods
advance
setTime
setTimeFrames
setTimePercentage
Artboards
Animation
Fields
duration
The duration of the animation.
Methods
advance
Advances the animation by the given time in seconds. Returns true if the animation hasn’t reached its end. If the animation is set to loop or ping pong, it will always return true
setTime
set the animation time in seconds
setTimeFrames
set the animation time in frames
setTimePercentage
set the animation time as a percentage of the duration
Was this page helpful?
Yes
No
Suggest edits
Raise issue
Keyboard Shortcuts
Artboard
⌘I