Last active
January 8, 2020 14:57
-
-
Save sajhd/8f381caa938165d0ded2 to your computer and use it in GitHub Desktop.
Fade In Animation Mixin
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 Animation */ | |
@keyframes fadein { | |
from { opacity: 0; } | |
to { opacity: 1; } | |
} | |
/* Firefox < 16 */ | |
@-moz-keyframes fadein { | |
from { opacity: 0; } | |
to { opacity: 1; } | |
} | |
/* Safari, Chrome and Opera > 12.1 */ | |
@-webkit-keyframes fadein { | |
from { opacity: 0; } | |
to { opacity: 1; } | |
} | |
/* Internet Explorer */ | |
@-ms-keyframes fadein { | |
from { opacity: 0; } | |
to { opacity: 1; } | |
} | |
/* Opera < 12.1 */ | |
@-o-keyframes fadein { | |
from { opacity: 0; } | |
to { opacity: 1; } | |
} | |
@mixin fadein { | |
-webkit-animation: fadein 1s; /* Safari, Chrome and Opera > 12.1 */ | |
-moz-animation: fadein 1s; /* Firefox < 16 */ | |
-ms-animation: fadein 1s; /* Internet Explorer */ | |
-o-animation: fadein 1s; /* Opera < 12.1 */ | |
animation: fadein 1s; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment