Created
December 26, 2016 08:08
-
-
Save theanhdo94/deac671180e759f24d187d8744cd0a93 to your computer and use it in GitHub Desktop.
Simple fade animation using SCSS
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
| /** Register your custom effects **/ | |
| @-webkit-keyframes fadeEffect { | |
| from {opacity: 0;} | |
| to {opacity: 1;} | |
| } | |
| @keyframes fadeEffect { | |
| from {opacity: 0;} | |
| to {opacity: 1;} | |
| } | |
| /** Usage css **/ | |
| .your-element { | |
| -webkit-animation: fadeEffect 1s; | |
| animation: fadeEffect 1s; /* Fading effect takes 1 second */ | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hlkil