All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Implementing Spring and Bounce Animations with CSS's New Linear() Timing Function

By

feross

7mo ago· 15 min readen

Summary

The article explores the new CSS `linear()` timing function that enables physics-based animations like springs and bounces directly in native CSS, without requiring JavaScript libraries. It explains how this function works, its advantages over traditional Bézier curves for simulating natural motion, and provides practical tips and tricks for implementing effective spring animations. The author shares insights from personal experimentation with the API, highlighting both its capabilities and current limitations.

Key quotes

· 4 pulled
The 'linear()' timing function is a game-changer; it allows us to model physics-based motion right in vanilla CSS!
Bézier curves are great, but there are certain things they just can't do.
In the past, we've needed to rely on JavaScript libraries to provide these sorts of interpolations, which introduces a...
I've been experimenting with this API for a while now, and in this post, I'll share all of the tips and tricks I've learned for using it effectively.
Snippet from the RSS feed
The “linear()” timing function is a game-changer; it allows us to model physics-based motion right in vanilla CSS! That said, there are some limitations and quirks to be aware of. I’ve been experimenting with this API for a while now, and in this post, I’

You might also wanna read