Skip to main content
Rive home page
Search...
⌘K
Ask AI
Support
Get Started
Get Started
Search...
Navigation
Scripting API
Animation
Home
Editor
Scripting
App Runtimes
Game Runtimes
Feature Support
Tutorials
Case Studies
Community
Blog
Early Access
Scripting
Getting Started
Demos
Creating Scripts
Protocols
Data Binding
Script Inputs
Pointer Events
Debugging
AI Coding Agent
Keyboard Shortcuts
Scripting API
Animation
Artboard
BlendMode
Color
CommandType
Context
ContourMeasure
Converter
DataValue
DataValueBoolean
DataValueColor
DataValueNumber
DataValueString
EnumValues
Gradient
GradientStop
Image
ImageFilter
ImageSampler
ImageWrap
Input
Layout
Listener
Mat2D
Node
NodeData
NodeReadData
Output
Paint
PaintDefinition
PaintStyle
Path
PathCommand
PathData
PathEffect
PathMeasure
PointerEvent
Property
PropertyEnum
PropertyList
PropertyTrigger
PropertyViewModel
Renderer
StrokeCap
StrokeJoin
Trigger
Vector
ViewModel
On this page
Fields
duration
Methods
advance
setTime
setTimeFrames
setTimePercentage
Scripting API
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