1 of 23

Optimizing Web Animation for Performance.

2 of 23

2

I am a software engineer who is mostly focused on frontend technologies.

Hey 👋 i am Evergreen

@idoevergreen

3 of 23

Do you really need animation??

🤔🤔

4 of 23

Are they supporting the user's journey or just added because they look trendy?

5 of 23

Animation serves as a valuable means to simplify and communicate complex information or concepts.

6 of 23

Not all animation is useful. when used well animation can make communication a whole lot more descriptive.

7 of 23

It is crucial, however, to exercise restraint and intention when incorporating animation, prioritizing the user experience above all else.

8 of 23

Animations can significantly affect page load times and overall site performance.

9 of 23

Clearly state the purpose of each animation and how it supports the overall user experience.

10 of 23

Key metrics to Evaluate web animation

11 of 23

Use performance tools to assess the impact of animations on page load times and responsiveness.

12 of 23

Use performance tools to assess the impact of animations on page load times and responsiveness.

13 of 23

60FPS

14 of 23

Where you can, stick to changing transforms and opacity.

15 of 23

Measure how long it takes for the main content of the page to load.

a. Page load time

Metrics

4

Monitor the frame rate to ensure animations run smoothly at 60fps.

b. Frame rate and smoothness

Track how much CPU and memory are used by animations.

c. CPU and memory usage

Analyze the size of animation files and their impact on network performance

d. Network performance

16 of 23

Tools

17 of 23

Google PageSpeed Insights

Provides detailed insights on page performance, including how animations affect load times.

18 of 23

Chrome DevTools Performance Tab:

Allows in-depth performance analysis, including FPS, CPU usage, and rendering times.

19 of 23

Chrome DevTools Performance Tab

20 of 23

GTmetrix

Analyzes page load times and provides recommendations for performance improvements,

including animation optimization

21 of 23

Animation Libs

Framermotion, GSAP, Popmotion ,Motion one

22 of 23

Animation can elevate your design, but only if it serves the user and doesn't compromise performance.

23 of 23

Thank you

for listening!