JSFiddle - React, Tailwind, and code Playground
HTML
<a class="wbutton img-responsive center-block" role="button">
<img class="front-logo" src="https://placeholdit.imgix.net/~text?txtsize=28&txt=300%C3%97300&w=300&h=300" />
<span class="front-ball"><img src="https://placeholdit.imgix.net/~text?txtsize=28&txt=300%C3%97300&w=300&h=300" /></span>
</a>
CSS
.wbutton:hover > .front-ball {
-webkit-transform: scale(1.1);
transform: scale(1.1);
-webkit-animation-name: hve-scale;
animation-name: hve-scale;
-webkit-animation-iteration-count: 1;
animation-iteration-count: 1;
}
.front-ball {
display: inline-block;
vertical-align: middle;
-webkit-transform: translateZ(0);
transform: translateZ(0);
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-moz-osx-font-smoothing: grayscale;
-webkit-animation-name: hvr-wobble-vertical;
animation-name: hvr-wobble-vertical;
-webkit-transition-property: transform;
transition-property: transform;
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
}
@-webkit-keyframes hvr-wobble-vertical {
16.65% {
-webkit-transform: translateY(8px);
}
33.3% {
-webkit-transform: translateY(-6px);
}
49.95% {
-webkit-transform: translateY(4px);
}
66.6% {
-webkit-transform: translateY(-2px);
}
83.25% {
-webkit-transform: translateY(1px);
}
100% {
-webkit-transform: translateY(0);
}
}
@keyframes hvr-wobble-vertical {
16.65% {
transform: translateY(8px);
}
33.3% {
transform: translateY(-6px);
}
49.95% {
transform: translateY(4px);
}
66.6% {
transform: translateY(-2px);
}
83.25% {
transform: translateY(1px);
}
100% {
transform: translateY(0);
}
}
@-webkit-keyframes hve-scale {
0% {
-webkit-transform: scale(1);
}
100% {
-webkit-transform: scale(1.1);
}
}
@keyframes hve-scale {
0% {
transform: scale(1);
}
100% {
transform: scale(1.1);
}
}