Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nav {
- height: 700px;
- width: 100%;
- background-color: rgb(158, 165, 177);
- position: relative;
- margin-top: -622px;
- -webkit-transition: margin .4s cubic-bezier(1,-0.29,.76,1.32);
- -moz-transition: margin .4s cubic-bezier(1,-0.29,.76,1.32);
- -ms-transition: margin .4s cubic-bezier(1,-0.29,.76,1.32);
- -o-transition: margin .4s cubic-bezier(1,-0.29,.76,1.32);
- transition: margin .4s cubic-bezier(1,-0.29,.76,1.32);
- }
- .show-nav {
- margin-top: -100px;
- }
- $('nav').click(function(e) {
- e.preventDefault();
- $(this).toggleClass('show-nav');
- });
Add Comment
Please, Sign In to add comment