anim-engine 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SKILL.md +3 -3
- package/package.json +1 -1
package/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: anim-engine
|
|
3
|
-
description: Renderer-agnostic numeric animation library for JavaScript runtimes. Use when a user has installed 'anim-engine' and needs help writing animation code
|
|
3
|
+
description: Renderer-agnostic numeric animation library for JavaScript runtimes. Use when a user has installed 'anim-engine' and needs help writing animation code with tweens, keyframes, timelines, springs, smooth damp, lerp, or color interpolation. Covers all exported primitives, common recipes, game engine integration, and the ticker setup pattern.
|
|
4
4
|
metadata:
|
|
5
5
|
triggers: "anim-engine, animation, createAnimation, createTimeline, createSpring, createSmoothDamp, createLerp, createSmoothClamp, lerpRgba, hexToRgba, animation library, js animation, tween, keyframe animation, timeline animation, spring physics"
|
|
6
6
|
---
|
|
@@ -218,8 +218,8 @@ const timeline = createTimeline(
|
|
|
218
218
|
{
|
|
219
219
|
// values[i] / velocities[i] correspond to layer i in definition order
|
|
220
220
|
onUpdate: (values, velocities) => {
|
|
221
|
-
sprite.x = values[0];
|
|
222
|
-
sprite.y = values[1];
|
|
221
|
+
sprite.x = values[0]; // layer 1 (fade in)
|
|
222
|
+
sprite.y = values[1]; // layer 2 (slide up)
|
|
223
223
|
sprite.rotation = values[2]; // layer 3 (spin)
|
|
224
224
|
},
|
|
225
225
|
onProgress: (p) => console.log(p),
|