← Tailwind CSS classes list

Tailwind CSS class: .bg-opacity-50

<div class="bg-opacity-50 bg-teal-400 m-2 h-16 w-16"></div>

Preview

Check .bg-opacity-50 in a real project

Click one of the examples listed below to open the Shuffle Visual Editor with the UI library that uses the selected component.

CSS source

.bg-opacity-50 { --bg-opacity: 0.5; }

More in Tailwind CSS Background