Class | Properties |
---|---|
.transition-slow | transition-duration: $transition-duration-slow; |
.transition-medium | transition-duration: $transition-duration; |
.transition-fast | transition-duration: $transition-duration-fast; |
Usage
Use transition-{speed}
to specify the speed at which CSS properties should transition.
Variants
By default, no responsive or hover-state variants are generated for transition duration utilities.
Responsive
To include responsive variants like .md:transition-fast
, add "transition-duration"
to the $responsive-variants
variable in your theme’s _variables.scss
file when recompiling your CSS:
$responsive-variants: (
// ...
"transition-duration",
);
Hover-state
To include hover-state variants like .hover:transition-fast
, add "transition-duration"
to the $hover-variants
variable when recompiling your CSS:
$hover-variants: (
// ...
"transition-duration",
);