/    Sign up×
Reference /Pin to ProfileBookmark

animation-timing-function

The animation-timing-function property designates the speed curve of an animation.

Syntax

The speed curve specifies the time an animation takes to complete. It is used to make the changes smoothly.

div.ex {
  animation-timing-function: ease-in-out;
}

Values

linear
The same speed from start to end is set for the animation.

ease
Default value. The animation starts and ends slowly.

ease-in
The animation starts slowly.

ease-out
The animation ends slowly.

ease-in-out
The animation starts and ends slowly.

step-start
The same as steps(1, start).

step-end
The same as steps(1, end).

steps(int, start|end)
Designates a function that steps using two parameters. First parameter is the number of steps in the function, which must be a positive value greater than 0. Second optional parameter is either “start” or “end”, specifying where the change of values occur within the interval. Default for the second value is “end”.

cubic-bezier(n,n,n,n)
Define custom values in the cubic-bezier function using numeric values from 0 to 1.

initial
Sets the property to its default value.

inherit
Inherits this property’s value from its parent item.

Browser Compatibilty

Demos

User-submitted codepen.io examples of animation-timing-function

@ByteAtATime

See the Pen on CodePen.

@themolitorThe labels on the boxes really help a lot. 👍

Want to Contribute?

Submit a codepen.io link that demonstrates animation-timing-function:

to submit a demo.
CSS
×

Success!

Help @reference spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 7.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ,
analytics: Fullres
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: Anonymous,
tipped: article
amount: 1000 SATS,

tipper: Anonymous,
tipped: article
amount: 1000 SATS,

tipper: @Nanditha,
tipped: article
amount: 1000 SATS,
)...