VOOZH about

URL: https://www.geeksforgeeks.org/css/tailwind-css-scale/

⇱ Tailwind CSS Scale - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Tailwind CSS Scale

Last Updated : 23 Jul, 2025

This class accepts lots of value in tailwind CSS in which all the functional properties are covered in class form. This class is used to resize the element in the 2D plane. It scales the elements in horizontal and vertical directions. In CSS, we can do that by using the CSS scale() function.

Scale classes:

  • scale-0|50|75|90|95|100|105|110|125|150: This class is used to scale on both axis percentage-wise.
  • scale-x-0|50|75|90|95|100|105|110|125|150: This class is used to scale on x-axis percentage-wise.
  • scale-y-0|50|75|90|95|100|105|110|125|150: This class is used to scale on y-axis percentage-wise.

Syntax:

<element class="scale-{axis-percentage}">...</element>

Example:

Output:

👁 Image
CSS Scale Class
Comment