threejs-animation

Create and control Three.js animations using AnimationMixer, AnimationAction, AnimationClip, GLTFLoader, and per-frame updates.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/gyalamanch001a/pur-new --skill threejs-animation-gyalamanch001a
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: threejs-animation
Source: https://github.com/gyalamanch001a/pur-new/tree/main/.agents/skills/threejs-animation
Command: npx skills add https://github.com/gyalamanch001a/pur-new --skill threejs-animation-gyalamanch001a

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you build, play, and blend animations in Three.js without manually wiring every motion detail from scratch. It reduces the complexity of keyframes, rigged models, morph targets, and runtime motion control in web-based 3D experiences.

Core Features & Use Cases

  • Keyframe Animation: Define and play clip-based motion for object transforms, colors, visibility, and morph influences.
  • Skeletal and GLTF Animation: Load animated models, drive bone hierarchies, and control character movement with mixers and actions.
  • Animation Blending: Crossfade between idle, walk, run, and additive layers for smooth state transitions.
  • Procedural Motion: Add oscillation, spring behavior, and damped movement for interactive effects and game-like responsiveness.
  • Use Case: Animate a product prototype, character model, or interactive scene so motion feels polished, responsive, and production-ready.

Quick Start

Ask the assistant to create a Three.js animation setup for a model, including a mixer, an animation loop, and a smooth transition between two clips.

Frequently Asked Questions about threejs-animation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I play and blend skeletal animations from a GLTF model in Three.js?

To blend animations, use AnimationMixer to track time and AnimationAction methods like crossfadeTo or setEffectiveWeight to transition between clips. This smoothly interpolates skeletal rigs, morph targets, and keyframe values for polished motion.

What is the best way to crossfade between idle and walk cycles in Three.js?

The best way to crossfade between idle and walk cycles is using AnimationAction crossfadeTo within an AnimationMixer loop. This interpolates skeletal bone transforms and keyframe values smoothly, ensuring responsive state transitions for character movement.

How do I animate morph targets and keyframe clips in Three.js?

Animate morph targets and keyframe clips by defining AnimationClip tracks for morph influences and object transforms, then playing them through an AnimationMixer. This drives facial expressions, color changes, visibility, and procedural motion reliably.

Do I need an AnimationMixer to control GLTF animations in web graphics?

Yes, you need an AnimationMixer to control GLTF animations. The mixer synchronizes AnimationAction playback, manages looping, and updates skeletal bone hierarchies and morph target influences per frame for reliable web graphics rendering.

How do I add procedural motion and spring behavior to a Three.js scene?

Add procedural motion and spring behavior by applying oscillation and damped movement algorithms alongside your AnimationMixer updates. This creates interactive effects and game-like responsiveness without relying solely on imported keyframe clips.