I have javascript that when hover plays an animation, but i have 4 different animations and i would like it to randomize it each time the element is hovered over
here's my code
function firsthelp() {
document.getElementById('help-text').innerHTML = 'Enter your first name';
document.getElementById('help-box').style.animation ='greenhover 2s;';
document.getElementById('help-box').style.WebkitAnimation ='greenhover 2s';
}
The other css animations are bluehover orangehover and purplehover