threejs-animation is one of thirteen three.js skills that keep an agent on the current r186 API. It covers keyframe tracks and clips, the AnimationMixer and AnimationAction system, playing animations that ship inside glTF models, bone and morph target control, and crossfading between clips.
Each example is written for WebGLRenderer, and a closing section covers the same topic under WebGPURenderer with TSL. The skill also lists outdated patterns that models still produce and the fix for each.
What You Get
- A runnable quick start using Timer for frame-rate-independent motion
- Reference examples for number, vector, quaternion, color and boolean keyframe tracks and their naming rules
- Patterns for playing glTF clips, cloning skinned models and giving each copy its own mixer
- Crossfade, fade-in and fade-out recipes for blending clips
- A WebGPU and TSL section and a list of outdated patterns with the current fix
Common Use Cases
- Playing a walk or idle clip from a loaded glTF character
- Animating a mesh’s position, opacity or color with hand-written keyframes
- Driving morph targets such as a smile or blink
- Crossfading between idle and walk clips on a character
- Cloning one animated character into several instances
What Makes It Unique
The skill is pinned to a specific release, three.js r186, and was checked against the published package and migration guide, so it prefers current APIs such as Timer over older patterns. Other three.js references mix many releases. Every skill in the set shares one layout: quick start, topic sections, a WebGPU and TSL section, common mistakes and cross-links to sibling skills.
Under The Hood
The skill is a single SKILL.md of explanation and JavaScript examples. Its name and description sit in context all the time, and the body loads when a request matches. It ships no scripts and tells the agent to run no commands. The agent reads it and writes three.js code into your project. The examples load a model file from a relative path in the browser; the skill does not fetch anything itself.