.hov { color: white; } .hov:hover { color: black; } .hovound:hover { animation: bound .3s ease infinite alternate; } @keyframes bound { 0% {transform: translateY(25px);} 100% {transform: translateY(-25px);} }