Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- (function($) {
- $(document).ready(function() {
- $(window).scroll(function(event){
- var st = $(this).scrollTop();
- if (st > 10){
- $('.custom_class').addClass('scrolled');
- } else {
- $('.custom_class').removeClass('scrolled');
- }
- });
- });
- })(jQuery)
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement