Skip to content

Instantly share code, notes, and snippets.

@bewho
Created February 22, 2018 07:43
Show Gist options
  • Select an option

  • Save bewho/cc57c99ad81e2801a94152447b84ddfe to your computer and use it in GitHub Desktop.

Select an option

Save bewho/cc57c99ad81e2801a94152447b84ddfe to your computer and use it in GitHub Desktop.
fade-in
@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