Created
June 11, 2013 23:22
-
-
Save sambody/5761670 to your computer and use it in GitHub Desktop.
CSS: Transition hover effects examples (IE10+)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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