The transition CSS property is a shorthand property for transition-property, transition-duration, transition-timing-function, and transition-delay. It allows to define the transition between two states of an element.
Overview tablesee individual properties
transition
transition: transition-delay
transition: transition-duration
transition: transition-property
transition: transition-timing-function
When you hover over the div, the height property will gradually change from 100 to 500.
div:hover {
height: 300px;
transition: height 2s;
}
A list of translatable properties exists here: http://www.w3.org/TR/2009/WD-css3-transitions-20091201/#animatable-properties-
Related specificationstransition
transition
Mozilla Developer Network : Article
Microsoft 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