open_in_new
content_copy
$(window).scroll(function() { $('div').toggleClass('scrolled', $(this).scrollTop() > 50); });