How can i rubber band each letter on hover? Currently i have it working for color on each letter but cant seem to get the rubber band effect going. What i'm doing wrong?
https://codepen.io/MariusZMM/pen/aPLJGo
.a {
animation-duration: 1s;
animation-fill-mode: both;
animation-iteration-count: 1;
}
.a:hover {
color: orange;
/* animation: rubberBand 5s infinite; */
animation-name: rubberBand;
}
@keyframes rubberBand {
from {
transform: scale3d(1, 1, 1);
}
30% {
transform: scale3d(1.25, 0.75, 1);
}
40% {
transform: scale3d(0.75, 1.25, 1);
}
50% {
transform: scale3d(1.15, 0.85, 1);
}
65% {
transform: scale3d(.95, 1.05, 1);
}
75% {
transform: scale3d(1.05, .95, 1);
}
to {
transform: scale3d(1, 1, 1);
}
}