Skip to content

Instantly share code, notes, and snippets.

@thesephist
Created November 24, 2016 05:28
Show Gist options
  • Save thesephist/7fbc5f0db492f52031e3944e6cfdffe5 to your computer and use it in GitHub Desktop.
Save thesephist/7fbc5f0db492f52031e3944e6cfdffe5 to your computer and use it in GitHub Desktop.
Detector for if an element is in-viewport (SCSS portion)
.js {
// javascript executing environment
.reveal {
transition: opacity .8s, transform .7s;
opacity: 0;
transform: translateY(50px);
&.appear {
opacity: 1;
transform: translateY(0);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment