Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(window).scroll(function() {
- if ($(this).scrollTop() >= 200) {
- $('#menu').addClass('ativo');
- }
- else {
- $('#menu').removeClass('ativo');
- }
- });
- #menu{
- display: none;
- }
- .ativo{
- display: block;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement