Minor Changes
-
60a7784: Refactor
transition
utility to improve DX of adding transition. Transitions will now add a default
transition property, timing function and duration. This allows you to add transitions with a single property.<div className={css({ transition: 'background' })}>Content</div>
This will generate the following css:
.transition_background { transition-property: background, background-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }