Agent skill Web motion
Three.js Animation
Use spatial graphics, scenes or materials to support a web experience.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add CloudAI-X/threejs-skills --skill threejs-animation --agent claude-code --yesCheck this file in your project.claude/skills/threejs-animation/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add CloudAI-X/threejs-skills --skill threejs-animationSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Bring an existing Three.js project and a local preview. Check the installed version and renderer first.
View operation manualWhat this skill helps with
- Use spatial graphics, scenes or materials to support a web experience.
Good for
- 3D on the web
- Inputs
- A local animated GLB, two clip names and a transition trigger
- Exercise
- Play and crossfade two model clips
- Acceptance
- Play each clip, crossfade twice and remove and remount the viewer. Confirm the pose does not snap during the fade, the trigger remains responsive and the old mixer stops.
- Skill name
threejs-animation- Repository
CloudAI-X/threejs-skills
Keep the change to a scene you can compare
Open-ended request
Make the whole 3D scene better.
Without a baseline and scoped inputs, you cannot tell which adjustment solved the problem.
A reproducible outcome
- Play and crossfade two model clips
- A local animated GLB, two clip names and a transition trigger
threejs-animation operation manual
Play and crossfade two model clips
A local animated GLB, two clip names and a transition trigger
Check the current scene
Check the current scene
Prompt · Step 1Use CloudAI-X’s threejs-animation and read the installed SKILL.md. The scope is [Project and preview route]. Load [Local GLB] through the project’s existing GLTFLoader and report the actual clip names and durations. Check the model root and the existing render loop so only one mixer advances the model.Apply the documented technique
Play and crossfade two model clips
Prompt · Step 2Use CloudAI-X’s threejs-animation and read the installed SKILL.md. The scope is [Project and preview route]. Create or reuse AnimationMixer on the model. Play [Idle clip] and crossfade to [Action clip] when [Trigger] runs. Advance the mixer with frame delta in seconds. Scope changes to the model viewer and stop and uncache the mixer when that viewer is removed.Verify the rendered behavior
Verify the rendered behavior
- Play each clip, crossfade twice and remove and remount the viewer. Confirm the pose does not snap during the fade, the trigger remains responsive and the old mixer stops.
Prompt · Step 3Use CloudAI-X’s threejs-animation and read the installed SKILL.md. The scope is [Project and preview route]. Play each clip, crossfade twice and remove and remount the viewer. Confirm the pose does not snap during the fade, the trigger remains responsive and the old mixer stops.
Look up a specific implementation problem
Ask the assistant to use the current preview and installed dependency as evidence.
What inputs are required?threejs-animation
- Command or reference
SKILL.md- Examples
- A local animated GLB, two clip names and a transition trigger
How do I verify the real effect?Browser
- Command or reference
Play and crossfade two model clips- Examples
- Play each clip, crossfade twice and remove and remount the viewer. Confirm the pose does not snap during the fade, the trigger remains responsive and the old mixer stops.
Troubleshooting and FAQ
Why may an example fail in my project?
Confirm Three.js and its addons use matching versions and check the renderer required by that example.
How do I judge the result?
Play each clip, crossfade twice and remove and remount the viewer. Confirm the pose does not snap during the fade, the trigger remains responsive and the old mixer stops.