Link Search Menu Expand Document

Animation Mixer

A list of available animations can usually be found by inspecting the model file or its documentation. All animations will play by default. To play only a specific set of animations, use wildcards: animation-mixer=’clip: run_*’.

More properties at https://github.com/n5ro/aframe-extras/tree/master/src/loaders#animation

Animation Mixer Attributes

Attribute Type Default Description Required
clampWhenFinished boolean False If true, halts the animation at the last frame. No
clip string '*' Name of the animation clip(s) to play. Accepts wildcards. No
crossFadeDuration number 0 Duration of cross-fades between clips, in seconds. No
duration number 0 Duration of the animation, in seconds (0 = auto). No
repetitions number; One of: ['once', 'repeate', 'pingpong'] 0 Number of times to play the clip, in addition to the first play. Repetitions are ignored for loop: once. No
timeScale number 1 Scaling factor for playback speed. A value of 0 causes the animation to pause. Negative values cause the animation to play backwards. No