Check out example codes for "css start animation on hover". It will help you in understanding the concepts better.

Code Example 1

button{
  animation: rotate360 1.2s linear infinite;  /* animation set */
  animation-play-state: paused;               /* put paused */
}
button:hover{
  animation-play-state: running;              /* trigger on hover */
}
@keyframes rotate360 {                        /* keyframes of animation */
  to { transform: rotate(360deg); }           
}

Learn ReactJs, React Native from akashmittal.com