Scale
v1.2.0+
Utilities for scaling elements with transform.
Control the scale of an element by first enabling transforms with the utility, then specifying the scale using the scale-{percentage}
, scale-x-{percentage}
, and scale-y-{percentage}
utilities.
Note that because Tailwind implements transforms using CSS custom properties, the transform utilities are not supported in older browsers like IE11. If you need transforms for your project and need to support older browsers, or other custom CSS.
To control the scale of an element at a specific breakpoint, add a 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.
For more information about Tailwind’s responsive design features, check out the Responsive Design documentation.
all
sm
md
lg
xl
By default Tailwind provides ten general purpose scale utilities. You change, add, or remove these by editing the theme.scale
section of your Tailwind config.
Learn more about customizing the default theme in the .
By default, only responsive, hover and focus variants are generated for scale utilities.
You can control which variants are generated for the scale utilities by modifying the property in the variants
section of your tailwind.config.js
file.
For example, this config will also generate active and group-hover variants: