Navdeep Yadav
Navdeep Yadav

Reputation: 1

How to apply tailwind gradient diagonally?

What if I want to use gradient diagonally as shown in the image? Is there any way to select an angle while applying a gradient?

enter image description here

Upvotes: 0

Views: 1889

Answers (1)

MagnusEffect
MagnusEffect

Reputation: 3915

YOu can use the gradient lass of tailwind css like this.

Below is the example

<script src="https://cdn.tailwindcss.com"></script>
<div class="h-96 w-96 bg-gradient-to-tl from-slate-200 via-rose-100 to-purple-300"></div>

Upvotes: 2

Related Questions