Reputation: 1
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?
Upvotes: 0
Views: 1889
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