ScrollTrigger Matchmedia function does not work as I expected. It works successfully when i scroll without resizing screen.
Please check my codesandbox link (https://codesandbox.io/s/blissful-franklin-j6rdo?file=/src/contents.js) here.
Once I resize the screen to tablet view (~1024px) or opposite way from tablet view to Desktop view,
- ScrollTrigger behavior does not work as initial setting.
- Having console error message with `GSAP target null not found`
As I found out the simple examples of matchmedia was working with resizing. But, my code does not work. Once resize the screen,
seems scrollTrigger is getting confused. What did I miss on here?