Check out example codes for "animation keep end state". It will help you in understanding the concepts better.

Code Example 1

-webkit-animation: bubble 1.0s forwards; /* for less modern browsers */
        animation: bubble 1.0s forwards;

Learn ReactJs, React Native from akashmittal.com