Created
November 12, 2018 16:09
-
-
Save jeangontijo/8200ac92826ba12dd12d19f343ab5e20 to your computer and use it in GitHub Desktop.
Fade animation on scroll
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
.element { | |
opacity: 1; | |
transform: translate3d(0, 0, 0); | |
} | |
.fade { | |
opacity: 0; | |
transform: translate3d(0, 3rem, 0); | |
transition-property: opacity, transform; | |
transition-duration: 0.8s, 1.4s; | |
transition-timing-function: linear, cubic-bezier(0.175, 0.885, 0.32, 1.275); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment