Article Introduction: CSS Transformations (transition) |
-webkit-transition
-moz-transition
-o-transition
transition
CSS Property
The property being transformed (for example, color).
Duration
The duration of the transformation, usually measured in seconds (e.g.,. 25s).
Timing function
Allows you to control how long the duration is calculated. Instead of using a simple linear calculation, you can either accelerate (fade) or decelerate (fades), or even specify a beat or count (for example, linear). More on this later in the article.
Delay
How long to wait between the action and the start of the transformation, usually expressed in seconds (e.g.,. 1s). If you do not want to delay, the value can be omitted.
CSS Properties
Color color
Crop percent
Font-weight Digital
Height percent, length
Letter-spacing length
Line-height percent, length, number
Opacity Digital
Outline-offset integer
Outline-width length
Right percent, length
Text-indent percent, length
Text-shadow Shadow
Vertical-align percent, length, keywords
Visibility visibility
word-spacing percent, length
Z-index positive integer
Zoom Digital
Transform Timing and latency
With transformations, you can change the rate of the transformation, slow at the beginning and then accelerate at the end, and vice versa, or anything between. CSS transforms have 5 timed keywords and also allow you to define your own timing curves.
Cubic-bezier (x1, y1, x2, y2) X and Y values are between 0 and 1 to define the shape of the Bezier curve for the time function.
Linear Average Speed
Ease slowing down slowly.
ease-in acceleration (fade into)
Ease-out deceleration (fade out)
Ease-in-out accelerates and slows down.