maipo89
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by maipo89
-
-
Hello everyone,
I'm new to Gsap. I was trying to do this scrolltrigger animation where on scroll, the red box should scale and fit the yellow container, and at the same time text 1 and text 2 move at the center of the square. Any idea how to acheive this? I added a codepen with what I've done, but it seems not working.
Thank you everyone.
Gsap multiple animations on scroll
in GSAP
Posted
Thank you Rodrigo,
Your explanation was really simple, I had maybe just to read more into the documentation to find the solution.
I'm trying to add now the matchMedia to make the animation play only up to 900px, I've tried this code as explained in the documentation, but gave me this error "gsap__WEBPACK_IMPORTED_MODULE_0__.default.matchMedia is not a function".
Here is my code, I'm using VueJS