I have an animated button with text Discover that moves 3px up on hover and then down on click. My issue is that letter i in Discover does some weird shaking from side to side on animation in Chrome browser. There is no issue with it in Firefox. It's not very apparent, but if you click a couple of times you can notice it. Is there any way to fix this shaking and what is causing it?
Here is codepen.
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
header {
height: 95vh;
background-image: linear-gradient(to right bottom, rgba(3, 119, 252, .8), rgba(3, 186, 252, .8));
position: relative;
}
.header__text-box {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
.btn:link,
.btn:visited {
text-decoration: none;
color: #777;
padding: 15px 25px;
background-color: white;
display: inline-block;
border-radius: 100px;
transition: all .2s;
}
.btn:hover {
transform: translateY(-3px)
}
.btn:active {
transform: translateY(-1px)
}
<header>
<div class="header__text-box">
<a href="#" class="btn">Discover</a>
</div>
</header>