Save 37% off PRO during our Black Friday Sale! »

Creating CSS animations in React

A5ff2e94b72a105555575b0a8e25836f?s=47 Wendy Kong
September 26, 2019

Creating CSS animations in React

CSS animations (when used correctly) can add life to your website and engage users. In this talk we will explore a simple animation built on pure CSS and HTML, and how to make the code cleaner and more extensible using React and Emotion.


Wendy Kong

September 26, 2019


  1. ✨ CSS animations in React Wendy Kong Software Developer, Pulsifi

  2. How to use CSS animation properties CSS animations React Add

    animations to React components
  3. When do we need animations?

  4. User: What’s happening? User: ...oh ok, something is loading. Loading

    cat by domaso
  5. User: What am I supposed to do? User: ...oh, I

    need to scroll down. Animated Scroll Indicator by Aaron C-T
  6. Twitter’s Like button User: Whee!

  7. CSS Animations is a module of CSS that lets you

    animate the values of CSS properties over time, using keyframes. -MDN docs
  8. CSS Animations provide finer control over animated properties. CSS Transitions

    can trigger animations based on user actions. -MDN docs
  9. DEMO vs Transition Animation

  10. People taking CSS animations to the next level

  11. Alex the CSS Husky by David Khourshid (davidkpiano) (works

    in Chrome)
  12. Clip Clop Clippity Clop by Steve Gardner (steevg)

  13. animation: descend 5s infinite;

  14. animation-name: descend; animation-duration: 5s; animation-iteration-count: infinite;

  15. Let’s use ALL THE PROPERTIES

  16. animation-name animation-duration animation-timing-function animation-delay animation-iteration-count animation-direction animation-fill-mode animation-play-state

  17. Easing functions specify the rate of change of a parameter

    over time. Objects in real life don’t just start and stop instantly, and almost never move at a constant speed.
  18. Cubic Bezier

  19. Animating the clinic guys A two part story

  20. Chapter 1 Jaded by sassy pugs

  21. Chapter 2 An emotional reaction

  22. Some considerations

  23. 163 animatable properties Gotta animate them all….?


  25. I just want to relax ~

  26. Browser support

  27. Thank you Go forth and make cool stuff @wendko