I am trying to start this specific CSS animation with jquery when you click the button. no idea how. Any ideas?
THanks
<button>Click here to start the animation!!</button>
<div id="ball"></div>
#ball {
background:tomato;
height:50px;
width:50px;
border-radius:200px;
position:absolute;
animation:bounce 3s infinite;
-webkit-animation:bounce 3s infinite;
top:40px;
}
@-webkit-keyframes bounce {
50% {
top: calc(100% - 50px);
}
}
@keyframes bounce {
50% {
top: calc(100% - 50px);
}
}