Search
 
SCRIPT & CODE EXAMPLE
 

CSS

change text color when scrolling css

$(document).ready(function(){       
        var scroll_pos = 0;
        $(document).scroll(function() { 
            scroll_pos = $(this).scrollTop();
            if(scroll_pos > 210) {
                $('.hvr-reveal').css('color', '#000');
            } else {
                $('.hvr-reveal').css('color', '#fff');
            }
        });
    });
Comment

PREVIOUS NEXT
Code Example
Css :: box shadow all sides 
Css :: css create a circle image 
Css :: how to create wave like border 
Css :: button click css style 
Css :: what is descendant selector 
Css :: create circle border css 
Css :: css row column grid 
Css :: css scroll height if screen too small 
Css :: hide in css 
Css :: flex flow 
Css :: overflow-y scroll css 
Css :: include screen size 
Css :: margin bottom not working 
Css :: div set text colo0r 
Css :: css outline style 
Css :: background single line property css 
Css :: use dark shed in image in css 
Css :: css hover rounded corners 
Css :: animation css 
Css :: css focus 
Css :: css letter spacing tight 
Css :: inherit css 
Css :: scss color black white 
Css :: css two classes together 
Css :: tailwindcss cdn v3 
Css :: css border top linear gradient 
Css :: css interne 
Css :: how to use hr lines in a class css 
Css :: img grows up onmouseover css 
Css :: buttons have strange style iOS 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =