Skip to content

Instantly share code, notes, and snippets.

@sambody
Created June 11, 2013 23:22
Show Gist options
  • Save sambody/5761670 to your computer and use it in GitHub Desktop.
Save sambody/5761670 to your computer and use it in GitHub Desktop.
CSS: Transition hover effects examples (IE10+)
/* specify property to change, and duration
transition: property duration timing-function delay;
Set on NORMAL state, not hover;
*/
/* shorthand */
-webkit-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
/* multiple transitions */
transition: background 0.2s ease, padding 0.8s linear;
/* explicit */
transition-property: width;
transition-duration: 1s;
transition-timing-function: linear; /* ease, linear, ease-in, ease-out, ease-in-out, etc */
transition-delay: 2s;
-webkit-transition-property:width;
-webkit-transition-duration:1s;
-webkit-transition-timing-function:linear;
-webkit-transition-delay:2s;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment