/    Sign up×
Reference /Pin to ProfileBookmark

transition-timing-function

The transition-timing-function property designates the speed curve of the transition effect.

Syntax

Gives a transition effect the ability to change speed throughout its duration.

div {
  transition-timing-function: ease;
}

Values

ease
Default value. Designates a transition effect that starts slowly, then fast, then ends slowly (same as cubic-bezier(0.25.0.1,0.25,1)).

linear
Designates a transition effect with the same speed from start to end (same as cubic-bezier(0,0,1,1)).

ease-in
Designates a transition effect with a slow start (same as cubic-bezier(0.42,0,1,1)).

ease-out
Designates a transition effect with a slow end (same as cubic-bezier(0,0,0.58,1)).

ease-in-out
Designates a transition effect with a slow start and slow end (same as cubic-bezier(0.42,0,0.58,1)).

step-start
Same as steps(1, start).

step-end
Same as steps(1, end).

steps(int, start|end)
Designates a stepping function utilizing two parameters. First parameter is a positive value larger than 0 that provides the number of intervals in the function. Second parameter is optional and provides the point at which the change of values occur in the interval – either start or end. If omitted, it defaults to end.

cubic-bezier(n,n,n,n)
Defines the values between 0 and 1 in the cubic-bezier function.

initial
Sets the property to its default value.

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

Browser Compatibilty

Demos

Have a code example of transition-timing-function? Submit a codepen.io demo and we'll showcase it here

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 4.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

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