GSAP Match Media
Hi All,
I have a gsap tl animation here, it was working perfectly fine, but I wanted to add a match media query so that the animation had a slightly different styling on the mobile breakpoint.
I added the match media in and cant seem to get it working, as the whole animation is now broken.
Can someone have a brief look at the screenshot attached and let me know why my match media might not be working.
The first and second screenshot is of exactly what I added in to the original working code.
Last thing, can someone let me know if this is html or javascript as im using VS code and would like to set the language. As a complete noob learning on the go I thought GSAP was Javasctipt but someone has told me the code in the screen shots is HTML.
Thanks!
Dylan
I have a gsap tl animation here, it was working perfectly fine, but I wanted to add a match media query so that the animation had a slightly different styling on the mobile breakpoint.
I added the match media in and cant seem to get it working, as the whole animation is now broken.
Can someone have a brief look at the screenshot attached and let me know why my match media might not be working.
The first and second screenshot is of exactly what I added in to the original working code.
Last thing, can someone let me know if this is html or javascript as im using VS code and would like to set the language. As a complete noob learning on the go I thought GSAP was Javasctipt but someone has told me the code in the screen shots is HTML.
Thanks!
Dylan

