Last active
August 29, 2015 14:03
-
-
Save jpgls/2351712013c049f0e6d6 to your computer and use it in GitHub Desktop.
CSS Transition Shorthand Syntax for Multiple Properties
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
.some-selector { | |
-webkit-transition: height 0.3s ease-out, opacity 0.3s ease 0.5s; | |
-moz-transition: height 0.3s ease-out, opacity 0.3s ease 0.5s; | |
-ms-transition: height 0.3s ease-out, opacity 0.3s ease 0.5s; /* IE10 is actually unprefixed */ | |
-o-transition: height 0.3s ease-out, opacity 0.3s ease 0.5s; | |
transition: height 0.3s ease-out, opacity 0.3s ease 0.5s; | |
} | |
/* Adding delay to height property */ | |
.some-selector { | |
-webkit-transition: height 0.3s ease-out 0.4s, opacity 0.3s ease 0.5s; | |
-moz-transition: height 0.3s ease-out 0.4s, opacity 0.3s ease 0.5s; | |
-ms-transition: height 0.3s ease-out 0.4s, opacity 0.3s ease 0.5s; /* IE10 is actually unprefixed */ | |
-o-transition: height 0.3s ease-out 0.4s, opacity 0.3s ease 0.5s; | |
transition: height 0.3s ease-out 0.4s, opacity 0.3s ease 0.5s; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment