Skip to content

Instantly share code, notes, and snippets.

@theanhdo94
Created December 26, 2016 08:08
Show Gist options
  • Select an option

  • Save theanhdo94/deac671180e759f24d187d8744cd0a93 to your computer and use it in GitHub Desktop.

Select an option

Save theanhdo94/deac671180e759f24d187d8744cd0a93 to your computer and use it in GitHub Desktop.
Simple fade animation using SCSS
/** 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 */
}
@AnuMonga
Copy link

hlkil

@AnuMonga
Copy link

hllo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment