Why is the animation working without
transition: all
?
This is the code,
.btn:link,
.btn:visited {
}
.btn:hover {
transform: translateY(-3px);
}
.btn:active {
transform: translateY(-1px);
}
Both hover and active are translating. What is wrong?