Describes how the animation will progress over one cycle of its duration.
Overview tableease
animationTimingFunction
animation-timing-function: cubic-bezier(0,0,1,1)
animation-timing-function: ease
animation-timing-function: ease-in
animation-timing-function: ease-in-out
animation-timing-function: ease-out
animation-timing-function: linear
animation-timing-function: step-end
animation-timing-function: step-start
animation-timing-function: steps(3, end)
cubic-bezier(0.25,0.1,0.25,1)
.
cubic-bezier(0,0,1,1)
cubic-bezier(0.42,0,1,1)
.
cubic-bezier(0,0,0.58,1)
.
cubic-bezier(0.42,0,0.58,1)
. Note that this timing function is similar to ease
, although the latter starts faster than it ends.
start
or end
and specifies the point at which the change of values occur within the interval. If the second parameter is omitted, it is given the value end
.
A fast-moving sequence uses linear timing to highlight an abrupt transition within the keyframes, from a moving to a stopped state:
div {
animation-duration : 0.5s;
animation-fill-mode : both;
animation-iteration-count : 1;
animation-name : fastSlide;
animation-timing-function : linear;
transform-origin : bottom;
}
@keyframes fastSlide {
0% { transform: translate(120%) skewX(-30deg) ; }
70% { transform: translate(0%) skewX(-30deg) ; }
80% { transform: translate(0%) skewX(20deg) ; }
95% { transform: translate(0%) skewX(-10deg) ; }
100% { transform: translate(0%) skewX(0deg) ; }
}
Usage
The timing functions supported by animation-timing-function are defined by transition-timing-function.
If animation-timing-function
specifies more timing functions than there are values in animation-name
, the excess functions are ignored. If animation-timing-function
specifies fewer durations than there are values in animation-name
, the list of functions is repeated as many times as necessary to ensure each animation has a duration.
For a keyframed animation, the animation-timing-function applies between keyframes, not over the entire animation. For example, in the case of an ease-in-out timing function, an animation will ease in at the start of the keyframe and ease out at the end of the keyframe. An animation-timing-function defined within a keyframe block applies to that keyframe, otherwise the timing function specified for the animation is used.
Related specificationsMicrosoft Developer Network: Windows Internet Explorer API reference Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4