VOOZH about

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

⇱ Tailwind CSS Opacity - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Tailwind CSS Opacity

Last Updated : 23 Jul, 2025

This class accepts lots of value in tailwind CSS in which all the properties are covered in class form. By using this class we can set the opacity of any element. In CSS, we do that by using the CSS Opacity property.

Opacity class:

  • opacity-0: Control the opacity of an element.

Note: The number of the opacity can be changeable from 0 to 100 with the span of 5.

Syntax:

<element class="opacity-{number}">...</element>

Example:

Output:

👁 Image
Tailwind CSS opacity class
Comment