WebXR - Week 12
WebXR - Week 12
https://codepen.io
Value
dur How long (milliseconds) each cycle of the animation is. 1000
easing Easing function of animation. To ease in, ease out, ease in easeInQuad See easings
and out.
loop How many times the animation should repeat. If the value is 0
true, the animation will repeat infinitely.
enabled If disabled, animation will stop and startEvents will not trigger true
animation start.
Multiple Animations
The component’s base name is animation. We can attach multiple animations to one
entity by name-spacing the component with double underscores (__):
animation__2="property: position"
animation__color="property: material.color"></a-entity>
Easings
Easings define the accelerations and speed throughout the cycle of the animation.
Events
Property Description
Members
Accessed as el.components.animation.<MEMBER>.
Member Description