CSS3 Transition
CSS3 transition property allow css properties to change over time. Transition can be used on css hover, focus, and active state. These properties change over a interval of time, thus looks interactive. Before css3 transition, transition effects were given using javascript, or jquery. But with the introduction of transitions in css3, its easier to use transitions.
Transition use on
- :hover
- :focus
- :active
Without Transition
With Transition
Transition Properties
Property | Value |
---|---|
Transition-duration | Duration of transition, in s or ms. Transition Duration |
Transition-delay | Delay to start transition, in s or ms. Transition Delay |
Transition-property | css property for transition. Default value is all. Transition Property |
Transition-timing-function | linear, ease, ease-in, ease-out, ease-in-out, cubic-bezier. Transition Timing Function |
Transition | combination oe shortcut of all transition properties in one. Transition |