Jump to content
Search Community

Can ScrollTrigger animate elements like immerser.js

Jamesh test
Moderator Tag

Recommended Posts

I’m doing some research into how you can reveal/mask fixed elements which contain both text and SVG. I’d like to replicate how immerser.js works but use GSAP and ScrollTrigger instead. Is this possible and, if so, could you point me in the right direction? Thanks in advance.

Link to comment
Share on other sites

Hello and thanks for being part of club GreenSock! We appreciate the support. 💚

 

Yep, pretty much  anything is possible with GSAP, ScrollTrigger and a bit of critical thinking!

There are a lot of threads in the GSAP forums about masking with SVG too.

Here's a thread...

 

A wonderful article...

https://www.motiontricks.com/svg-masks-and-clippaths

And a demo of a mask being triggered by scrollTrigger...

See the Pen XWgdmro by PointC (@PointC) on CodePen

 

This should help set you off in the right direction. Happy to help with any GSAP specific questions or take a look at a minimal demo if you get stuck.

Good luck with your project!

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...