DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+3 =
Submit