Created
February 22, 2018 07:43
-
-
Save bewho/cc57c99ad81e2801a94152447b84ddfe to your computer and use it in GitHub Desktop.
fade-in
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
| @keyframes fade-in { | |
| 0% {opacity: 0;}/*初始状态 透明度为0*/ | |
| 40% {opacity: 0;}/*过渡状态 透明度为0*/ | |
| 100% {opacity: 1;}/*结束状态 透明度为1*/ | |
| } | |
| @-webkit-keyframes fade-in {/*针对webkit内核*/ | |
| 0% {opacity: 0;} | |
| 40% {opacity: 0;} | |
| 100% {opacity: 1;} | |
| } | |
| #Wrapper { | |
| animation: fade-in;/*动画名称*/ | |
| animation-duration: 1.5s;/*动画持续时间*/ | |
| -webkit-animation:fade-in 1.5s;/*针对webkit内核*/ | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment