What problem does it solve?
This Skill consolidates guidance for creating, controlling, and optimizing animations in Three.js so developers can play GLTF clips, author keyframe and skeletal motion, and combine procedural movement without reinventing animation workflows.
Core Features & Use Cases
- Playback and control: Use AnimationClip, AnimationMixer, and AnimationAction to play, pause, seek, and time-scale animations.
- Skeletal and keyframe animation: Load GLTF animations, access skeletons and bones, and drive bones programmatically for character motion.
- Morph targets and procedural motion: Animate morphTargetInfluences for expressions and implement procedural patterns like springs, oscillation, and smooth damping.
- Blending and additive layers: Crossfade between actions, set effective weights, use additive clips for layered motions, and manage loop modes and clamping.
- Use case: Blend idle/walk/run cycles for a GLTF character while applying additive breathing and morph-based facial expressions for realism.
Quick Start
Load your GLTF model into the scene, create an AnimationMixer for the model, play named clips with mixer.clipAction, and crossfade between them to blend a walk and idle cycle.