Created
November 24, 2016 05:28
-
-
Save thesephist/7fbc5f0db492f52031e3944e6cfdffe5 to your computer and use it in GitHub Desktop.
Detector for if an element is in-viewport (SCSS portion)
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
.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