Dont Pre Animate A Self Animating Property

Pass the raw target to a component that animates a property itself — an externally tweened value is a stream of new targets, and such components typically ignore new targets while their own animation is still running, which freezes the effect part-way. Covers how to recognise a self-animating property, why a hard flip between endpoints is the fix, and how to prove ownership from the compiled artifact. Use when an animated component sticks near its starting value, when a transition plays once and never again, or before wrapping a component's input in `animateFloatAsState`.

maxrave-dev a3d759f 5.7 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/dont-pre-animate-a-self-animating-property commit a3d759f641

Frequently asked questions

npx skillmds@latest add maxrave-dev/dont-pre-animate-a-self-animating-property