[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EHY98Y4PE9BF0HCS66RSC8":3,"skill-same:01M7EHY98Y4PE9BF0HCS66RSC8":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":13,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M7EHY98Y4PE9BF0HCS66RSC8","threejs-impl-animation",null,"Use when playing animations, crossfading between animation states, or loading skeletal animations from GLTF in Three.js. Prevents the common mistake of not calling mixer.update(delta) every frame, wrong crossfade setup, or missing Clock. Covers AnimationMixer, AnimationClip, AnimationAction, KeyframeTrack, crossfade, blending. Keywords: animation, AnimationMixer, AnimationClip, AnimationAction, crossfade, skeletal, GLTF animation, keyframe, blend, Clock, camera animation, smooth camera, fly to, tween, GSAP.","mhyahya854\u002FAI-Second-Brain_Universal-Rules","mhyahya854","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F194078115?v=4","01M7EGSP2M9T858SDHJMXQ257Y","01M7EGSP3N6HN6879SVDPMD4DZ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002FImpertio-Studio\u002FThree.js-Claude-Skill-Package\u002Fthreejs-impl-animation\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: threejs-impl-animation\ndescription: >\n  Use when playing animations, crossfading between animation states,\n  or loading skeletal animations from GLTF in Three.js. Prevents the\n  common mistake of not calling mixer.update(delta) every frame,\n  wrong crossfade setup, or missing Clock. Covers AnimationMixer,\n  AnimationClip, AnimationAction, KeyframeTrack, crossfade, blending.\n  Keywords: animation, AnimationMixer, AnimationClip, AnimationAction, crossfade, skeletal, GLTF animation, keyframe, blend, Clock, camera animation, smooth camera, fly to, tween, GSAP.\nlicense: MIT\ncompatibility: \"Designed for Claude Code. Requires Three.js r160+.\"\nmetadata:\n  author: OpenAEC-Foundation\n  version: \"1.0\"\n---\n\n# threejs-impl-animation\n\n## Quick Reference\n\n### Architecture\n\n```\nAnimationClip        (data: array of KeyframeTrack objects)\n  └── AnimationAction  (playback controller: play, pause, fade, crossfade)\n        └── AnimationMixer (master scheduler: one per animated root object)\n              └── Clock    (provides delta time for mixer.update)\n```\n\nALWAYS create exactly ONE `AnimationMixer` per animated root object.\nALWAYS call `mixer.update(delta)` every frame inside the render loop.\nNEVER instantiate `AnimationAction` directly -- ALWAYS use `mixer.clipAction(clip)`.\n\n### Essential Imports\n\n```js\nimport * as THREE from 'three';\nimport { GLTFLoader } from 'three\u002Faddons\u002Floaders\u002FGLTFLoader.js';\n```\n\n### Minimal Animation Setup\n\n```js\nimport * as THREE from 'three';\nimport { GLTFLoader } from 'three\u002Faddons\u002Floaders\u002FGLTFLoader.js';\n\nconst clock = new THREE.Clock();\nlet mixer;\n\nconst loader = new GLTFLoader();\nloader.load('character.glb', (gltf) => {\n  scene.add(gltf.scene);\n  mixer = new THREE.AnimationMixer(gltf.scene);\n\n  \u002F\u002F Play all animations from the GLTF file\n  gltf.animations.forEach((clip) => {\n    mixer.clipAction(clip).play();\n  });\n});\n\nfunction animate() {\n  const delta = clock.getDelta();\n  if (mixer) mixer.update(delta);\n  renderer.render(scene, camera);\n}\nrenderer.setAnimationLoop(animate);\n```\n\n### Critical Warnings\n\n**NEVER** forget to call `mixer.update(delta)` in the render loop -- animations will NOT play without it.\n\n**NEVER** use `new Date()` or `performance.now()` to compute delta manually -- ALWAYS use `THREE.Clock` or `renderer.setAnimationLoop` which provides stable frame timing.\n\n**NEVER** call `mixer.clipAction(clip)` repeatedly in the render loop -- it caches internally, but the lookup is unnecessary overhead. ALWAYS store the returned action in a variable.\n\n**NEVER** call `.play()` every frame -- call it ONCE to start playback. Calling `.play()` again on an already-playing action has no effect, but it signals misunderstanding.\n\n**ALWAYS** call `.reset()` before `.play()` when restarting a stopped or finished action, or the action may resume from its last position.\n\n**ALWAYS** set `action.clampWhenFinished = true` when using `LoopOnce` -- otherwise the action resets to the first frame when finished.\n\n---\n\n## AnimationMixer\n\nThe master scheduler that drives all animation actions for a single object hierarchy.\n\n### Constructor\n\n```js\nconst mixer = new THREE.AnimationMixer(rootObject);\n```\n\n`rootObject` is the root `Object3D` of the animated model (typically `gltf.scene`).\n\n### Properties\n\n| Property | Type | Default | Description |\n|----------|------|---------|-------------|\n| `.time` | number | `0` | Global mixer time in seconds |\n| `.timeScale` | number | `1` | Global speed multiplier; `0` pauses ALL actions |\n\n### Methods\n\n| Method | Returns | Description |\n|--------|---------|-------------|\n| `.clipAction(clip, root?, blendMode?)` | `AnimationAction` | Returns or creates an action for the clip |\n| `.existingAction(clip, root?)` | `AnimationAction \\| null` | Returns previously created action or `null` |\n| `.update(delta)` | `this` | Advances mixer by delta seconds -- MUST call every frame |\n| `.setTime(seconds)` | `this` | Sets global time, updates all actions |\n| `.stopAllAction()` | `this` | Deactivates all scheduled actions |\n| `.getRoot()` | `Object3D` | Returns the mixer's root object |\n| `.uncacheAction(clip, root?)` | `void` | Deallocates cached action |\n| `.uncacheClip(clip)` | `void` | Deallocates clip data |\n| `.uncacheRoot(root)` | `void` | Deallocates root object data |\n\n### Events\n\nListen via `mixer.addEventListener(type, callback)`:\n\n| Event | Fires When |\n|-------|-----------|\n| `'finished'` | Action completes (ONLY with `LoopOnce` + `clampWhenFinished = true`) |\n| `'loop'` | Action completes a loop iteration |\n\nEvent object properties: `{ action, loopDelta, type }`.\n\n### Blend Modes\n\nPass as the third argument to `mixer.clipAction(clip, root, blendMode)`:\n\n| Constant | Behavior |\n|----------|----------|\n| `THREE.NormalAnimationBlendMode` | Standard blending (default) |\n| `THREE.AdditiveAnimationBlendMode` | Layered on top of base animation |\n\n---\n\n## AnimationAction\n\nControls playback of a single animation clip. NEVER instantiate directly.\n\n### Properties\n\n| Property | Type | Default | Description |\n|----------|------|---------|-------------|\n| `.blendMode` | number | `NormalAnimationBlendMode` | Blending strategy |\n| `.clampWhenFinished` | boolean | `false` | Pause at last frame when done |\n| `.enabled` | boolean | `true` | Disable without resetting |\n| `.loop` | number | `LoopRepeat` | Loop mode |\n| `.paused` | boolean | `false` | Freeze playback |\n| `.repetitions` | number | `Infinity` | Loop count |\n| `.time` | number | `0` | Local time in seconds |\n| `.timeScale` | number | `1` | Speed: `0` pauses, negative reverses |\n| `.weight` | number | `1` | Blend influence `[0, 1]` |\n| `.zeroSlopeAtEnd` | boolean | `true` | Smooth interpolation at loop end |\n| `.zeroSlopeAtStart` | boolean | `true` | Smooth interpolation at loop start |\n\n### Loop Modes\n\n| Constant | Behavior |\n|----------|----------|\n| `THREE.LoopOnce` | Plays once, stops |\n| `THREE.LoopRepeat` | Restarts from beginning each loop |\n| `THREE.LoopPingPong` | Alternates forward\u002Fbackward |\n\n### Playback Methods\n\n| Method | Description |\n|--------|-------------|\n| `.play()` | Start playback |\n| `.stop()` | Stop and reset to start |\n| `.reset()` | Reset time, weight, speed to initial state |\n| `.startAt(mixerTime)` | Delay start until specified mixer time |\n\n### Fading and Crossfade Methods\n\n| Method | Description |\n|--------|-------------|\n| `.fadeIn(duration)` | Fade weight from `0` to `1` |\n| `.fadeOut(duration)` | Fade weight from `1` to `0` |\n| `.crossFadeFrom(fadeOutAction, duration, warp)` | Crossfade from another action into this one |\n| `.crossFadeTo(fadeInAction, duration, warp)` | Crossfade from this action to another |\n| `.stopFading()` | Cancel any active fade |\n\n### Speed and Timing Methods\n\n| Method | Description |\n|--------|-------------|\n| `.halt(duration)` | Decelerate timeScale to `0` over duration |\n| `.warp(startScale, endScale, duration)` | Smoothly transition playback speed |\n| `.stopWarping()` | Cancel any active warp |\n| `.setDuration(seconds)` | Adjust timeScale so one loop takes exactly `seconds` |\n| `.setEffectiveTimeScale(scale)` | Set effective time scale |\n| `.setEffectiveWeight(weight)` | Set effective weight |\n| `.setLoop(mode, repetitions)` | Set loop mode and count |\n| `.syncWith(otherAction)` | Synchronize time with another action |\n\n### Query Methods\n\n| Method | Returns | Description |\n|--------|---------|-------------|\n| `.isRunning()` | boolean | `true` only if actively playing |\n| `.isScheduled()` | boolean | `true` if `.play()` was called |\n| `.getClip()` | `AnimationClip` | The associated clip |\n| `.getMixer()` | `AnimationMixer` | The owning mixer |\n| `.getRoot()` | `Object3D` | The root object |\n| `.getEffectiveTimeScale()` | number | Computed time scale |\n| `.getEffectiveWeight()` | number | Computed weight |\n\n---\n\n## AnimationClip\n\nA reusable set of keyframe tracks. Typically loaded from GLTF files.\n\n### Constructor\n\n```js\nconst clip = new THREE.AnimationClip(name, duration, tracks, blendMode);\n```\n\n- `name` -- string identifier (GLTF clips use names from the file)\n- `duration` -- seconds; `-1` to auto-calculate from tracks\n- `tracks` -- array of `KeyframeTrack` objects\n- `blendMode` -- optional blend mode constant\n\n### Key Static Methods\n\n| Method | Description |\n|--------|-------------|\n| `AnimationClip.findByName(arrayOrObject, name)` | Look up clip by name |\n| `AnimationClip.CreateFromMorphTargetSequence(name, targets, fps, noLoop)` | Create clip from morph targets |\n| `AnimationClip.parse(json)` | Deserialize from JSON |\n\n---\n\n## KeyframeTrack Types\n\n| Track Type | Value Type | Use Case |\n|------------|-----------|----------|\n| `VectorKeyframeTrack` | Vector3 | Position, scale |\n| `QuaternionKeyframeTrack` | Quaternion | Rotation (uses slerp) |\n| `NumberKeyframeTrack` | number | Opacity, intensity |\n| `BooleanKeyframeTrack` | boolean | Visibility toggles |\n| `ColorKeyframeTrack` | Color | Color animation |\n| `StringKeyframeTrack` | string | Discrete string values |\n\n### Interpolation Modes\n\n| Constant | Behavior |\n|----------|----------|\n| `THREE.InterpolateDiscrete` | Step function, no smoothing |\n| `THREE.InterpolateLinear` | Linear interpolation (default) |\n| `THREE.InterpolateSmooth` | Cubic spline interpolation |\n\n### PropertyBinding Path Format\n\n```\n\"meshName.position\"                    \u002F\u002F animate position\n\"meshName.material.opacity\"            \u002F\u002F animate material property\n\"meshName.morphTargetInfluences[0]\"    \u002F\u002F animate morph target\n\"boneName.quaternion\"                  \u002F\u002F animate bone rotation\n```\n\n---\n\n## Clock\n\n### Constructor\n\n```js\nconst clock = new THREE.Clock(autoStart); \u002F\u002F autoStart defaults to true\n```\n\n### Methods\n\n| Method | Returns | Description |\n|--------|---------|-------------|\n| `.getDelta()` | number | Seconds since last `getDelta()` call |\n| `.getElapsedTime()` | number | Total elapsed time in seconds |\n| `.start()` | void | Start the clock |\n| `.stop()` | void | Stop without resetting |\n\n---\n\n## Crossfade Pattern (Character State Machine)\n\n```js\nconst actions = {};\ngltf.animations.forEach((clip) => {\n  actions[clip.name] = mixer.clipAction(clip);\n});\n\nlet currentAction = actions['Idle'];\ncurrentAction.play();\n\nfunction switchAction(toName, duration = 0.5) {\n  const toAction = actions[toName];\n  toAction.reset();\n  toAction.setEffectiveTimeScale(1);\n  toAction.setEffectiveWeight(1);\n  toAction.crossFadeFrom(currentAction, duration, true);\n  toAction.play();\n  currentAction = toAction;\n}\n```\n\nALWAYS call `.reset()` on the incoming action before crossfading.\nALWAYS store the current action reference for the next transition.\n\n---\n\n## Additive Animation Blending\n\n```js\nconst baseAction = mixer.clipAction(baseClip);\nconst additiveAction = mixer.clipAction(\n  additiveClip, undefined, THREE.AdditiveAnimationBlendMode\n);\n\nbaseAction.play();\nadditiveAction.play();\nadditiveAction.setEffectiveWeight(0.5);\n```\n\nUse additive blending for layered effects: breathing, damage reactions, aim offsets.\n\n---\n\n## Morph Target Animation\n\n```js\n\u002F\u002F Manual control\nmesh.morphTargetInfluences[0] = Math.sin(elapsed) * 0.5 + 0.5;\n\n\u002F\u002F Via GLTF animation clip (preferred)\nconst morphAction = mixer.clipAction(morphClip);\nmorphAction.play();\n```\n\n---\n\n## Reference Links\n\n- [references\u002Fmethods.md](references\u002Fmethods.md) -- Full API signatures\n- [references\u002Fexamples.md](references\u002Fexamples.md) -- Working code examples\n- [references\u002Fanti-patterns.md](references\u002Fanti-patterns.md) -- What NOT to do\n\n### Official Sources\n\n- https:\u002F\u002Fthreejs.org\u002Fdocs\u002F#api\u002Fen\u002Fanimation\u002FAnimationMixer\n- https:\u002F\u002Fthreejs.org\u002Fdocs\u002F#api\u002Fen\u002Fanimation\u002FAnimationAction\n- https:\u002F\u002Fthreejs.org\u002Fdocs\u002F#api\u002Fen\u002Fanimation\u002FAnimationClip\n- https:\u002F\u002Fthreejs.org\u002Fdocs\u002F#api\u002Fen\u002Fanimation\u002FKeyframeTrack\n- https:\u002F\u002Fthreejs.org\u002Fdocs\u002F#api\u002Fen\u002Fcore\u002FClock\n- https:\u002F\u002Fthreejs.org\u002Fexamples\u002F#webgl_animation_skinning_blending\n","# threejs-impl-animation\n\n## Quick Reference\n\n### Architecture\n\n```\nAnimationClip        (data: array of KeyframeTrack objects)\n  └── AnimationAction  (playback controller: play, pause, fade, crossfade)\n        └── AnimationMixer (master scheduler: one per animated root object)\n              └── Clock    (provides delta time for mixer.update)\n```\n\nALWAYS create exactly ONE `AnimationMixer` per animated root object.\nALWAYS call `mixer.update(delta)` every frame inside the render loop.\nNEVER instantiate `AnimationAction` directly -- ALWAYS use `mixer.clipAction(clip)`.\n\n### Essential Imports\n\n```js\nimport * as THREE from 'three';\nimport { GLTFLoader } from 'three\u002Faddons\u002Floaders\u002FGLTFLoader.js';\n```\n\n### Minimal Animation Setup\n\n```js\nimport * as THREE from 'three';\nimport { GLTFLoader } from 'three\u002Faddons\u002Floaders\u002FGLTFLoader.js';\n\nconst clock = new THREE.Clock();\nlet mixer;\n\nconst loader = new GLTFLoader();\nloader.load('character.glb', (gltf) => {\n  scene.add(gltf.scene);\n  mixer = new THREE.AnimationMixer(gltf.scene);\n\n  \u002F\u002F Play all animations from the GLTF file\n  gltf.animations.forEach((clip) => {\n    mixer.clipAction(clip).play();\n  });\n});\n\nfunction animate() {\n  const delta = clock.getDelta();\n  if (mixer) mixer.update(delta);\n  renderer.render(scene, camera);\n}\nrenderer.setAnimationLoop(animate);\n```\n\n### Critical Warnings\n\n**NEVER** forget to call `mixer.update(delta)` in the render loop -- animations will NOT play without it.\n\n**NEVER** use `new Date()` or `performance.now()` to compute delta manually -- ALWAYS use `THREE.Clock` or `renderer.setAnimationLoop` which provides stable frame timing.\n\n**NEVER** call `mixer.clipAction(clip)` repeatedly in the render loop -- it caches internally, but the lookup is unnecessary overhead. ALWAYS store the returned action in a variable.\n\n**NEVER** call `.play()` every frame -- call it ONCE to start playback. Calling `.play()` again on an already-playing action has no effect, but it signals misunderstanding.\n\n**ALWAYS** call `.reset()` before `.play()` when restarting a stopped or finished action, or the action may resume from its last position.\n\n**ALWAYS** set `action.clampWhenFinished = true` when using `LoopOnce` -- otherwise the action resets to the first frame when finished.\n\n---\n\n## AnimationMixer\n\nThe master scheduler that drives all animation actions for a single object hierarchy.\n\n### Constructor\n\n```js\nconst mixer = new THREE.AnimationMixer(rootObject);\n```\n\n`rootObject` is the root `Object3D` of the animated model (typically `gltf.scene`).\n\n### Properties\n\n| Property | Type | Default | Description |\n|----------|------|---------|-------------|\n| `.time` | number | `0` | Global mixer time in seconds |\n| `.timeScale` | number | `1` | Global speed multiplier; `0` pauses ALL actions |\n\n### Methods\n\n| Method | Returns | Description |\n|--------|---------|-------------|\n| `.clipAction(clip, root?, blendMode?)` | `AnimationAction` | Returns or creates an action for the clip |\n| `.existingAction(clip, root?)` | `AnimationAction \\| null` | Returns previously created action or `null` |\n| `.update(delta)` | `this` | Advances mixer by delta seconds -- MUST call every frame |\n| `.setTime(seconds)` | `this` | Sets global time, updates all actions |\n| `.stopAllAction()` | `this` | Deactivates all scheduled actions |\n| `.getRoot()` | `Object3D` | Returns the mixer's root object |\n| `.uncacheAction(clip, root?)` | `void` | Deallocates cached action |\n| `.uncacheClip(clip)` | `void` | Deallocates clip data |\n| `.uncacheRoot(root)` | `void` | Deallocates root object data |\n\n### Events\n\nListen via `mixer.addEventListener(type, callback)`:\n\n| Event | Fires When |\n|-------|-----------|\n| `'finished'` | Action completes (ONLY with `LoopOnce` + `clampWhenFinished = true`) |\n| `'loop'` | Action completes a loop iteration |\n\nEvent object properties: `{ action, loopDelta, type }`.\n\n### Blend Modes\n\nPass as the third argument to `mixer.clipAction(clip, root, blendMode)`:\n\n| Constant | Behavior |\n|----------|----------|\n| `THREE.NormalAnimationBlendMode` | Standard blending (default) |\n| `THREE.AdditiveAnimationBlendMode` | Layered on top of base animation |\n\n---\n\n## AnimationAction\n\nControls playback of a single animation clip. NEVER instantiate directly.\n\n### Properties\n\n| Property | Type | Default | Description |\n|----------|------|---------|-------------|\n| `.blendMode` | number | `NormalAnimationBlendMode` | Blending strategy |\n| `.clampWhenFinished` | boolean | `false` | Pause at last frame when done |\n| `.enabled` | boolean | `true` | Disable without resetting |\n| `.loop` | number | `LoopRepeat` | Loop mode |\n| `.paused` | boolean | `false` | Freeze playback |\n| `.repetitions` | number | `Infinity` | Loop count |\n| `.time` | number | `0` | Local time in seconds |\n| `.timeScale` | number | `1` | Speed: `0` pauses, negative reverses |\n| `.weight` | number | `1` | Blend influence `[0, 1]` |\n| `.zeroSlopeAtEnd` | boolean | `true` | Smooth interpolation at loop end |\n| `.zeroSlopeAtStart` | boolean | `true` | Smooth interpolation at loop start |\n\n### Loop Modes\n\n| Constant | Behavior |\n|----------|----------|\n| `THREE.LoopOnce` | Plays once, stops |\n| `THREE.LoopRepeat` | Restarts from beginning each loop |\n| `THREE.LoopPingPong` | Alternates forward\u002Fbackward |\n\n### Playback Methods\n\n| Method | Description |\n|--------|-------------|\n| `.play()` | Start playback |\n| `.stop()` | Stop and reset to start |\n| `.reset()` | Reset time, weight, speed to initial state |\n| `.startAt(mixerTime)` | Delay start until specified mixer time |\n\n### Fading and Crossfade Methods\n\n| Method | Description |\n|--------|-------------|\n| `.fadeIn(duration)` | Fade weight from `0` to `1` |\n| `.fadeOut(duration)` | Fade weight from `1` to `0` |\n| `.crossFadeFrom(fadeOutAction, duration, warp)` | Crossfade from another action into this one |\n| `.crossFadeTo(fadeInAction, duration, warp)` | Crossfade from this action to another |\n| `.stopFading()` | Cancel any active fade |\n\n### Speed and Timing Methods\n\n| Method | Description |\n|--------|-------------|\n| `.halt(duration)` | Decelerate timeScale to `0` over duration |\n| `.warp(startScale, endScale, duration)` | Smoothly transition playback speed |\n| `.stopWarping()` | Cancel any active warp |\n| `.setDuration(seconds)` | Adjust timeScale so one loop takes exactly `seconds` |\n| `.setEffectiveTimeScale(scale)` | Set effective time scale |\n| `.setEffectiveWeight(weight)` | Set effective weight |\n| `.setLoop(mode, repetitions)` | Set loop mode and count |\n| `.syncWith(otherAction)` | Synchronize time with another action |\n\n### Query Methods\n\n| Method | Returns | Description |\n|--------|---------|-------------|\n| `.isRunning()` | boolean | `true` only if actively playing |\n| `.isScheduled()` | boolean | `true` if `.play()` was called |\n| `.getClip()` | `AnimationClip` | The associated clip |\n| `.getMixer()` | `AnimationMixer` | The owning mixer |\n| `.getRoot()` | `Object3D` | The root object |\n| `.getEffectiveTimeScale()` | number | Computed time scale |\n| `.getEffectiveWeight()` | number | Computed weight |\n\n---\n\n## AnimationClip\n\nA reusable set of keyframe tracks. Typically loaded from GLTF files.\n\n### Constructor\n\n```js\nconst clip = new THREE.AnimationClip(name, duration, tracks, blendMode);\n```\n\n- `name` -- string identifier (GLTF clips use names from the file)\n- `duration` -- seconds; `-1` to auto-calculate from tracks\n- `tracks` -- array of `KeyframeTrack` objects\n- `blendMode` -- optional blend mode constant\n\n### Key Static Methods\n\n| Method | Description |\n|--------|-------------|\n| `AnimationClip.findByName(arrayOrObject, name)` | Look up clip by name |\n| `AnimationClip.CreateFromMorphTargetSequence(name, targets, fps, noLoop)` | Create clip from morph targets |\n| `AnimationClip.parse(json)` | Deserialize from JSON |\n\n---\n\n## KeyframeTrack Types\n\n| Track Type | Value Type | Use Case |\n|------------|-----------|----------|\n| `VectorKeyframeTrack` | Vector3 | Position, scale |\n| `QuaternionKeyframeTrack` | Quaternion | Rotation (uses slerp) |\n| `NumberKeyframeTrack` | number | Opacity, intensity |\n| `BooleanKeyframeTrack` | boolean | Visibility toggles |\n| `ColorKeyframeTrack` | Color | Color animation |\n| `StringKeyframeTrack` | string | Discrete string values |\n\n### Interpolation Modes\n\n| Constant | Behavior |\n|----------|----------|\n| `THREE.InterpolateDiscrete` | Step function, no smoothing |\n| `THREE.InterpolateLinear` | Linear interpolation (default) |\n| `THREE.InterpolateSmooth` | Cubic spline interpolation |\n\n### PropertyBinding Path Format\n\n```\n\"meshName.position\"                    \u002F\u002F animate position\n\"meshName.material.opacity\"            \u002F\u002F animate material property\n\"meshName.morphTargetInfluences[0]\"    \u002F\u002F animate morph target\n\"boneName.quaternion\"                  \u002F\u002F animate bone rotation\n```\n\n---\n\n## Clock\n\n### Constructor\n\n```js\nconst clock = new THREE.Clock(autoStart); \u002F\u002F autoStart defaults to true\n```\n\n### Methods\n\n| Method | Returns | Description |\n|--------|---------|-------------|\n| `.getDelta()` | number | Seconds since last `getDelta()` call |\n| `.getElapsedTime()` | number | Total elapsed time in seconds |\n| `.start()` | void | Start the clock |\n| `.stop()` | void | Stop without resetting |\n\n---\n\n## Crossfade Pattern (Character State Machine)\n\n```js\nconst actions = {};\ngltf.animations.forEach((clip) => {\n  actions[clip.name] = mixer.clipAction(clip);\n});\n\nlet currentAction = actions['Idle'];\ncurrentAction.play();\n\nfunction switchAction(toName, duration = 0.5) {\n  const toAction = actions[toName];\n  toAction.reset();\n  toAction.setEffectiveTimeScale(1);\n  toAction.setEffectiveWeight(1);\n  toAction.crossFadeFrom(currentAction, duration, true);\n  toAction.play();\n  currentAction = toAction;\n}\n```\n\nALWAYS call `.reset()` on the incoming action before crossfading.\nALWAYS store the current action reference for the next transition.\n\n---\n\n## Additive Animation Blending\n\n```js\nconst baseAction = mixer.clipAction(baseClip);\nconst additiveAction = mixer.clipAction(\n  additiveClip, undefined, THREE.AdditiveAnimationBlendMode\n);\n\nbaseAction.play();\nadditiveAction.play();\nadditiveAction.setEffectiveWeight(0.5);\n```\n\nUse additive blending for layered effects: breathing, damage reactions, aim offsets.\n\n---\n\n## Morph Target Animation\n\n```js\n\u002F\u002F Manual control\nmesh.morphTargetInfluences[0] = Math.sin(elapsed) * 0.5 + 0.5;\n\n\u002F\u002F Via GLTF animation clip (preferred)\nconst morphAction = mixer.clipAction(morphClip);\nmorphAction.play();\n```\n\n---\n\n## Reference Links\n\n- [references\u002Fmethods.md](references\u002Fmethods.md) -- Full API signatures\n- [references\u002Fexamples.md](references\u002Fexamples.md) -- Working code examples\n- [references\u002Fanti-patterns.md](references\u002Fanti-patterns.md) -- What NOT to do\n\n### Official Sources\n\n- https:\u002F\u002Fthreejs.org\u002Fdocs\u002F#api\u002Fen\u002Fanimation\u002FAnimationMixer\n- https:\u002F\u002Fthreejs.org\u002Fdocs\u002F#api\u002Fen\u002Fanimation\u002FAnimationAction\n- https:\u002F\u002Fthreejs.org\u002Fdocs\u002F#api\u002Fen\u002Fanimation\u002FAnimationClip\n- https:\u002F\u002Fthreejs.org\u002Fdocs\u002F#api\u002Fen\u002Fanimation\u002FKeyframeTrack\n- https:\u002F\u002Fthreejs.org\u002Fdocs\u002F#api\u002Fen\u002Fcore\u002FClock\n- https:\u002F\u002Fthreejs.org\u002Fexamples\u002F#webgl_animation_skinning_blending\n",{"name":5,"license":14,"metadata":23,"description":26,"compatibility":27},{"author":24,"version":25},"OpenAEC-Foundation","1.0","Use when playing animations, crossfading between animation states, or loading skeletal animations from GLTF in Three.js. Prevents the common mistake of not calling mixer.update(delta) every frame, wrong crossfade setup, or missing Clock. Covers AnimationMixer, AnimationClip, AnimationAction, KeyframeTrack, crossfade, blending. Keywords: animation, AnimationMixer, AnimationClip, AnimationAction, crossfade, skeletal, GLTF animation, keyframe, blend, Clock, camera animation, smooth camera, fly to, tween, GSAP.\n","Designed for Claude Code. Requires Three.js r160+.","main","4c174e06a831864e98c30f630a7aa6c04738b094","skills\u002F_intake\u002Fgithub\u002FImpertio-Studio\u002FThree.js-Claude-Skill-Package\u002Fthreejs-impl-animation","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules","https:\u002F\u002Fgithub.com\u002Fmhyahya854","2026-11-06 02:03:37",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add mhyahya854\u002FAI-Second-Brain_Universal-Rules --skill threejs-impl-animation",{"tool":40,"command":41},"bunx","bunx skills add mhyahya854\u002FAI-Second-Brain_Universal-Rules --skill threejs-impl-animation",{"tool":43,"command":44},"pnpm","pnpm dlx skills add mhyahya854\u002FAI-Second-Brain_Universal-Rules --skill threejs-impl-animation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002FImpertio-Studio\u002FThree.js-Claude-Skill-Package\u002Fthreejs-impl-animation\u002FSKILL.md",true,[48,53,59,63],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":13,"sourceHtmlUrl":52},".gitkeep","OTHER","其他","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002FImpertio-Studio\u002FThree.js-Claude-Skill-Package\u002Fthreejs-impl-animation\u002F.gitkeep",{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fanti-patterns.md","REFERENCE","参考文档",7570,"https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002FImpertio-Studio\u002FThree.js-Claude-Skill-Package\u002Fthreejs-impl-animation\u002Freferences\u002Fanti-patterns.md",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fexamples.md",8256,"https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002FImpertio-Studio\u002FThree.js-Claude-Skill-Package\u002Fthreejs-impl-animation\u002Freferences\u002Fexamples.md",{"path":64,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fmethods.md",9511,"https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002FImpertio-Studio\u002FThree.js-Claude-Skill-Package\u002Fthreejs-impl-animation\u002Freferences\u002Fmethods.md",[68,76,84,92,99,106],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":72,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M7EX4T721AAH60R0239P8WBZ","frontend-slides","Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT\u002FPPTX to web, or create slides for a talk\u002Fpitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fzarazhangrui\u002Ffrontend-slides\u002Ffrontend-slides\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fzarazhangrui\u002Ffrontend-slides\u002Ffrontend-slides\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M7EX495RSHTTCEJVX7C83FA3","design-dna","Extract, define, and apply design DNA across three dimensions: design system (tokens), design style (qualitative feel), and visual effects (Canvas, WebGL, 3D, particles, shaders, scroll effects, etc.). Use this skill when: (1) a user wants to see the full 3-dimension design structure\u002Fschema, (2) a user provides images, screenshots, or URLs of reference designs and wants them analyzed into a structured JSON profile covering all three dimensions, (3) a user has a Design DNA JSON and content and wants a design generated from it, or (4) any combination of these phases. Triggers on \"design DNA\", \"extract design style\", \"analyze design\", \"design tokens from reference\", \"generate design from JSON\", \"design system from screenshot\", \"design profile\", \"style guide JSON\", \"visual effects analysis\", \"design with effects\", \"3d design analysis\".","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fzanwei\u002Fdesign-dna\u002Fdesign-dna\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fzanwei\u002Fdesign-dna\u002Fdesign-dna\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":88,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7EX45RF2XZKRC3KDJDTT1PH","wireframe","Generate JSON wireframe with HTML preview","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fyhassy\u002Fwireframe-skill\u002Fwireframe-skill\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fyhassy\u002Fwireframe-skill\u002Fwireframe-skill\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M7EWZEM3MHD48AYSYFR2C9JP","social-publishing","Schedule and publish social media posts across 13 platforms (X, LinkedIn, Instagram, Facebook Pages, TikTok, Discord, Telegram, YouTube, Reddit, WordPress, Pinterest) via the SocialClaw API. Use when the user wants to publish, schedule, or manage social media content programmatically. Requires SOCIALCLAW_API_KEY.","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fwshobson\u002Fagents\u002Fsocial-publishing\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M7EWKDEK9840C728VXT78EQ9","hermes-tweet","Install and operate Hermes Tweet, a Hermes Agent plugin for X\u002FTwitter research, timeline reading, tweet analysis, and approval-gated private or state-changing operations. Use this skill when installing Hermes Tweet, researching X\u002FTwitter accounts, monitoring launch signals, investigating mentions, auditing giveaways, or preparing gated X operations. Use proactively when a Hermes Agent workflow needs current X\u002FTwitter context. Requires XQUIK_API_KEY for read and action tools.","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fwshobson\u002Fagents\u002Fhermes-tweet\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":18},"01M7EWASXP3NZWW95CJPT2CRWN","refactoring-ui","Audit and fix visual hierarchy, spacing, color, and depth in web UIs. Use when the user mentions \"my UI looks off\" (or amateur\u002Funprofessional), \"fix the design\", \"Tailwind styling\", \"color palette\", \"visual hierarchy\", \"design system\", \"spacing scale\", or \"component styling\". Also trigger when building consistent design tokens, creating dark mode themes, improving data-visualization clarity, or polishing UI details before launch. Covers grayscale-first workflow, constrained design scales, shadows, and component styling. For typeface selection, see web-typography. For usability audits, see ux-heuristics.","https:\u002F\u002Fgithub.com\u002Fmhyahya854\u002FAI-Second-Brain_Universal-Rules\u002Fblob\u002Fmain\u002Fskills\u002F_intake\u002Fgithub\u002Fwondelai\u002Fskills\u002Frefactoring-ui\u002FSKILL.md",[],[]]