Last active
January 19, 2016 20:53
-
-
Save rugor/d2b109e3d4026a53679d to your computer and use it in GitHub Desktop.
CSS: Fade in element w/ keyframes #rugor #st
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
// Fade in | |
.some-element { | |
-webkit-animation: fadein 2s; | |
-ms-animation: fadein 2s; | |
animation: fadein 2s; | |
} | |
@-webkit-keyframes fadein { | |
from { | |
opacity: 0; | |
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; | |
filter: alpha(opacity=0); | |
} | |
to { | |
opacity: 1; | |
-ms-filter: none; | |
-webkit-filter: none; | |
filter: none; | |
} | |
} | |
@keyframes fadein { | |
from { | |
opacity: 0; | |
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; | |
filter: alpha(opacity=0); | |
} | |
to { | |
opacity: 1; | |
-ms-filter: none; | |
-webkit-filter: none; | |
filter: none; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment