My CSS Hover is not working properly. I was trying to make a transition & animation for a button when you hover but it does not work. My code :
button.btn__1{
font-family: 'Ubuntu', sans-serif;
font-size: 30px;
font-weight: bold;
border-radius: 39px;
margin: 7px;
padding: 20px 35px;
background-color: rgba(95, 95, 95, 0.836);
color: rgb(212, 212, 212);
letter-spacing: 1px;
transition: 0.1s;
opacity: 1;
}
button.btn__1:hover {
opacity: 4;
translate: scaleY(-8px);
}
<center><button class="btn__1"><img src="https://img.icons8.com/metro/26/000000/cable-release.png"/>Invite</button></center>
Please help me! Sorry if there is any grammar mistakes.
<center>is an obsolete element and should no longer be used.