Here's a demo:
http://codepen.io/Tiger0915/pen/GgjVLN
I've got a keyframe
animation on hover
of the .circle
div. It works correctly when you hover over it.
@include keyframes(bounce-bulge) {
0% {
transform: scale(1);
}
20% {
transform: scale(.75);
}
80% {
transform: scale(1.75);
}
100% {
transform: scale(1.5);
}
}
.circle {
transition: all 300ms ease;
&:hover {
@include animation(bounce-bulge 500ms forwards);
}
}
I want to reverse the effect of the keyframe
whenever you stop hovering over the element.
Is this possible with just CSS?