Choosing the right easing


目录

Having discussed the various options available for easing in animations, what kind should you use in your projects, and what kind of durations should your animations have?

Summary

{% Img src="image/T4FyVKpzu4WKF1kBNvXepbi08t52/dnk1t7HFI8g3zNiZw2gC.png", alt="A Quintic ease-out animation curve.", width="640", height="600" %}

Generally speaking, an ease-out will be the right call, and certainly a good default. It is quick to start, giving your animations a feeling of responsiveness, which is desirable, but with a nice slowdown at the end.

There is a group of well-known ease-out equations beyond the one specified with the ease-out keyword in CSS, which range in their "aggressiveness." For a fast ease-out effect, consider a Quintic ease-out.

See a Quintic ease-out animation

Other easing equations, particularly bounces or elastic eases, should be used sparingly, and only when it’s appropriate to your project. There are few things that bring a user out of an experience like a jarring animation. If your project isn’t intended to be fun, then don’t have elements bouncing around the UI. Conversely, if you’re creating a site that is supposed to be lighthearted, then by all means use bounces!

Play around with eases, see which ones match your project’s personality, and go from there. For a full list of easing types, along with demos, see easings.net.

Pick the right animation duration

It is important that any animation added to your project has the correct duration. Too short and the animation will feel aggressive and sharp; too long and it will be obstructive and annoying.

Of course, these are just guidelines. Experiment with your own eases and choose what feels right for your projects.


版本号 #2
由 壳壳虫 创建于 2026-10-31 21:43:36 UTC
由 壳壳虫 更新于 2026-10-31 21:43:37 UTC