Transitions & Animation
Utilities to control the behavior of CSS transitions.
Class | Styles |
---|---|
transition-normal | transition-behavior: normal; |
transition-discrete | transition-behavior: allow-discrete; |
Use the transition-discrete
utility to start transitions when changing properties with a discrete set of values, such as elements that change from hidden
to block
:
Interact with the checkboxes to see the expected behavior
Prefix a transition-behavior
utility with a breakpoint variant like md:
to only apply the utility at medium screen sizes and above:
<button class="transition-discrete md:transition-normal ..."> <!-- ... --></button>
Learn more about using variants in the variants documentation.