Open In App
Related Articles

Tailwind CSS Backdrop Invert

Improve Article
Save Article
Like Article

The backdrop  invert class is an inbuilt function that is used to apply a filter to the image to set the invert of the color of the sample image. Tailwind CSS newly added feature brightness in 2.1 version.

Backdrop Invert:

  • backdrop-invert-0: This class is used to represent the original color on an element.
  • backdrop-invert: This class is used to represent the inverted color of that original color on an element.


<element class="filter backdrop-invert | 



<!DOCTYPE html>
  <link href=
<body class="text-center mx-4 ">
  <h1 class="text-green-600 text-5xl font-bold">
  <b>Tailwind CSS Backdrop Invert Rotate Class</b>
  <div class=" mx-16 mt-18 h-36 relative">
    <div class="absolute w-full py-18">
        <img class="rounded-lg object-cover" src=
    <div class="relative h-32 flex overflow-x-auto space-x-4">
      <div class="flex-shrink-0 border-4 border-green-500
           backdrop-filter -backdrop-invert-0 w-1/2">
      <div class="flex-shrink-0 border-4 border-green-500
           backdrop-filter backdrop-invert w-1/2">


Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 09 Nov, 2022
Like Article
Save Article
Similar Reads
Complete Tutorials