Hoist The Flag Not The Animation

Share the boolean that drives a fade, never the tween that runs it — each look derives its own curve, so one can go asymmetric (fast in, slow out) without changing how the other feels; covers why a symmetric linear fade over a bright backdrop makes container-backed controls read as the wrong colour, and why the shared animated value must stay published anyway. Use when buttons look lighter or darker than their neighbours only while something is fading, when one visual style needs a different timing from another, or before pulling an `animateFloatAsState` up into a shared state holder.

maxrave-dev Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/hoist-the-flag-not-the-animation commit 35abecc1b2

Frequently asked questions

npx skillmds@latest add maxrave-dev/hoist-the-flag-not-the-animation