Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.onscroll = function() {
- if (window.pageYOffset >= 404){
- $('.box-carrinho, .categories-menu').css({position: 'fixed', top: '30px'});
- }else{
- $('.box-carrinho, .categories-menu').css({position: 'static', top: '0'});
- }
- }
- <div class="row">
- <div class="... categoria">...</div>
- <div class="... produtos">...</div>
- <div class="... carrinho">...</div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement