Scale
Utilities for scaling elements with transform
Class reference
Usage
Control the scale of an element by first enabling transforms with the transform
utility, then specifying the scale using the scale-{percentage}
, scale-x-{percentage}
, and scale-y-{percentage}
utilities.
Note that because Elements implements transforms using CSS custom properties, the transform utilities are not supported in older browsers like IE11.
Responsive
To control the scale of an element at a specific breakpoint, add a {screen}:
prefix to any existing scale utility. For example, use md:scale-75
to apply the scale-75
utility at only medium screen sizes and above.
<div class="transform scale-100 **md:scale-75**"></div>
For more information about Elements’ responsive design features, check out the Responsive Design documentation.
On this Page
v1.13.5