.testButton { /*Your base testButton properties*/ transition: 0.5s; } .testButton:hover { /*whatever your hover animation is*/ } /*When you unhover, it'll go back to its original form in the transition time.*/