I just defined a variable called "option" for my Intersection Observer Threshold but it's not changing when I'm using match media.
here's the code :
{ let option = {threshold:0.8}; let mediaQuery1 = window.matchMedia('(min-width:1250px)'); if(mediaQuery1.matches){ option.threshold= 1; }
1.4m articles
1.4m replys
5 comments
57.0k users