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

Code Example 1

<link href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.min.css" rel="stylesheet">

Code Example 2

/* Answer to: "css animation library" */

/*
  There are an awful lot of libraries that want to help you animate
  things on the web. These aren’t really libraries that help you
  with the syntax or the technology of animations, but rather are
  grab-and-use as-is libraries. Want to apply a class like
  “animate-flip-up” and watch an element, uhhh, flip up? These are
  the kind of libraries to look at.

  1. Animista (personal favourite)
  2. Animate.css
  3. Tachyons
  4. Infinite
  5. Motion UI
  6. Micron
  7. Vivify
  9. Hover.css
  10. AllAnimationCss3
  11. Magic Animations CSS3
  12. It's Tuesday
  13. CHS
  14. ReboundGen
  15. CSShake
  16. Motion CSS
  17. cssanimation.io
  18. WickedCSS
  19. Woah.css
  20. Obnoxious.css
  21. Hexa
  22. Mimic.css

  For more information and direct links to the website of these
  libraries, go to:
  https://css-tricks.com/css-animation-libraries/
*/

Learn ReactJs, React Native from akashmittal.com