css trans from all code example
Example 1: css background color transition
/* Answer to: "css background color transition" */
/*
Transitions currently work in Safari, Chrome, Firefox, Opera and
Internet Explorer 10+.
The following should produce a fade effect for you on the browsers
mentioned above:
*/
a {
background-color: #FF0;
}
a:hover {
background-color: #AD310B;
-webkit-transition: background-color 1000ms linear;
-ms-transition: background-color 1000ms linear;
transition: background-color 1000ms linear;
}
Example 2: transition syntax css
transition: property duration transition-timing-function delay;
/*Shorthand Property*/