I've just learned to make animation with CSS. On Desktop Chrome everything is OK. But when I checked it out on Chrome for Android - there's some strange overlay effect when clicking.
.btn {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
display: block;
position: relative;
margin: 0 auto;
outline: none;
border: none;
background-color: #ff8800;
padding: 25px 65px;
font-size: 25px;
text-transform: uppercase;
border-radius: 25px;
box-shadow: 0 8px #ff6600;
cursor: pointer;
top: 0;
transition: all .3s;
}
.btn:hover {
top: 3px;
box-shadow: 0 5px #ff6600;
}
.btn:active {
top: 8px;
box-shadow: none;
}
<button class="btn">Click Me!</button>
Screenshots:
Normal state:
When clicking:
How I can get rid of this strange overlay on mobile browser? Thanks.