# Performance Recipes for transition specificity and compositing hints. ## Transition only what changes `transition: all` animates properties nobody meant to animate, such as colors on a theme flip. On layout properties such as `width` and `padding` it re-runs layout on every frame. Tailwind's bare `transition` is a curated list rather than `all`, and still covers more than most elements change. ```css /* Good: only what changes */ .button { transition-property: scale, background-color; transition-duration: 150ms; transition-timing-function: ease-out; } /* Bad: everything */ .button { transition: all 150ms ease-out; } ``` ```tsx // Good: explicit properties