Pressed Effect Button
from w3schools
by CJ Juarez
HTML
<h2>Animated Buttons - "Pressed Effect"</h2>
<button class="cancelItem_button">X</button>
CSS
.cancelItem_button {
display: inline-block;
padding: 15px 25px;
font-size: 24px;
cursor: pointer;
text-align: center;
text-decoration: none;
outline: none;
color: #fff;
background-color: #cd1338;
border: none;
border-radius: 15px;
box-shadow: 0 9px #c95f74;
}
.cancelItem_button:hover {
background-color: #b81132;
}
.cancelItem_button:active {
background-color: #9d0f2b;
box-shadow: 0 5px #9b4959;
transform: translateY(4px);
}