Last active
May 3, 2016 16:46
-
-
Save louisnovick/93f978c154ffaed5cbc2 to your computer and use it in GitHub Desktop.
Shrinking menu 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
.animated { | |
-webkit-animation-duration: .5s; | |
-moz-animation-duration: .5s; | |
-o-animation-duration: .5s; | |
animation-duration: .5s; | |
-webkit-animation-fill-mode: both; | |
-moz-animation-fill-mode: both; | |
-o-animation-fill-mode: both; | |
animation-fill-mode: both | |
} | |
@-webkit-keyframes slideDown { | |
0% { | |
-webkit-transform: translateY(-120px); | |
} | |
100% { | |
-webkit-transform: translateY(0); | |
} | |
} | |
@-moz-keyframes slideDown { | |
0% { | |
-moz-transform: translateY(-120px); | |
} | |
100% { | |
-moz-transform: translateY(0); | |
} | |
} | |
@-o-keyframes slideDown { | |
0% { | |
-o-transform: translateY(-120px); | |
} | |
100% { | |
-o-transform: translateY(0); | |
} | |
} | |
@keyframes slideDown { | |
0% { | |
transform: translateY(-120px); | |
} | |
100% { | |
transform: translateY(0); | |
} | |
} | |
.animated.slideDown { | |
-webkit-animation-name: slideDown; | |
-moz-animation-name: slideDown; | |
-o-animation-name: slideDown; | |
animation-name: slideDown; | |
} | |
@-webkit-keyframes slideUp { | |
0% { | |
-webkit-transform: translateY(0); | |
} | |
100% { | |
-webkit-transform: translateY(-120px); | |
} | |
} | |
@-moz-keyframes slideUp { | |
0% { | |
-moz-transform: translateY(0); | |
} | |
100% { | |
-moz-transform: translateY(-120px); | |
} | |
} | |
@-o-keyframes slideUp { | |
0% { | |
-o-transform: translateY(0); | |
} | |
100% { | |
-o-transform: translateY(-120px); | |
} | |
} | |
@keyframes slideUp { | |
0% { | |
transform: translateY(0); | |
} | |
100% { | |
transform: translateY(-120px); | |
} | |
} | |
.animated.slideUp { | |
-webkit-animation-name: slideUp; | |
-moz-animation-name: slideUp; | |
-o-animation-name: slideUp; | |
animation-name: slideUp; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment