Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add class in element on scroll

className={scroll ? "bg-black" : "bg-white"}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #class #element #scroll
ADD COMMENT
Topic
Name
3+3 =