Można skorzystać z animacji css.
body
{
background-color:#1a1a1a;
}
.button
{
border-radius:7px;
width:63px;
height:63px;
margin:5px;
padding:0;
font-size:40px;
text-align:center;
cursor:pointer;
color:#F00000;
background-color:#1a1a1a;
border:1px solid #ffffff;
}
.button:hover {
animation: effect 0.2s ease-in 2 alternate;
}
@keyframes effect {
from {
color:#F00000;
background-color:#1a1a1a;
border:1px solid #ffffff;
transform: scale(1);
}
to {
border: 1px solid rgba(255,255,255,0);
color: rgba(26,26,26,0);
background-color: rgba(0,0,0,0);
transform: scale(1.5);
}
}