So I'm trying to make the transition working by 0.5s whenever I hover to the button, but it doesn't work, does anyone has a clue?
this is my code :
.btn {
display: inline-block;
background-image: linear-gradient(90deg, #e34067,#f89c4b);
padding: 1rem 2rem;
padding-left: 1.4rem;
align-items: center;
border-radius: 10px;
border: none;
cursor: pointer;
transition: all 0.5s;
}
.btn p {
padding-left: 0.5rem;
}
.btn:hover {
background-image: linear-gradient(90deg,#f89c4b, #e34067);
}
<div type="button" class="add-photo">
<a class="btn" href="#"><i class="fa fa-plus-circle"></i>
<p> Add Photo</p>
</a>
</div>