Created
May 29, 2012 16:18
-
-
Save simplelife7/2829319 to your computer and use it in GitHub Desktop.
【CSS】CSS3过渡transition
This file contains hidden or 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
/* 简写:单个属性:*/ | |
-moz-transition:background 0.5s ease-out 0s; | |
/* 简写:多个属性:*/ | |
-moz-transition:background, 0.5s ease-out 0s, color 0.4 ease-out 0s; | |
/* 过渡单个 */ | |
{ | |
transition-property:opacity; | |
transition-duration:2s; | |
transition-timing-function:ease-in; | |
transition-delay:0; | |
} | |
/* 过渡多个-上下一一对应 */ | |
{ | |
transition-property:opacity left; | |
transition-duration:2s, 4s; | |
transition-timing-function:ease-in; | |
transition-delay:0; | |
} | |
/* 过渡多个-循环对应 opacity过渡时间为2s,left过渡时间为4s */ | |
{ | |
transition-property:opacity left width height; | |
transition-duration:2s, 4s; | |
transition-timing-function:ease-in; | |
transition-delay:0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment