πΉAdd Animation to the Scene
Last updated
Last updated
addAnimation:
refId
objId of the object
optional(for camera)
string
initialPosition
default: [0, 0, 0]
optional
[float, float, float]
finalPosition
default: [0, 0, 0]
optional
[float, float, float]
initialRotation
default: [0, 0, 0]
optional
[float, float, float]
finalRotation
default: [0, 0, 0]
optional
[float, float, float]
initialScale
default: [1, 1, 1]
optional
[float, float, float]
finalScale
default: [1, 1, 1]
optional
[float, float, float]
initialOpacity
default: 1
optional
float
finalOpacity
default: 1
optional
float
leftX
use only for trigger: βscrollβ, default: 0 (starting point of your trigger)
optional
number
length
default: 200 (duration of your animation)
Optional (60 fps per sec 200 is the default fps)
number