Rotate
Rotate an element by first enabling transforms with the utility, then specifying the rotation angle using the rotate-{angle}
utilities.
To control the rotation of an element at a specific breakpoint, add a {screen}:
prefix to any existing rotate utility. For example, use md:rotate-90
to apply the utility at only medium screen sizes and above.
By default, Tailwind provides seven general purpose rotate utilities. You change, add, or remove these by editing the theme.rotate
section of your Tailwind config.
Learn more about customizing the default theme in the theme customization documentation.
By default, only responsive, hover and focus variants are generated for rotate utilities.
For example, this config will also generate active and group-hover variants:
If you don’t plan to use the rotate utilities in your project, you can disable them entirely by setting the rotate
property to false
in the corePlugins
section of your config file: