Jump to content
Search Community

Custom GSAP plugin

ilyasseisov test
Moderator Tag

Recommended Posts

Hi!

 

Please tell, is it possible to create a custom simple "Animate on Scroll" GSAP plugin?

Nothing fancy, just when user scrolls element fades up.

 

Usage example:

<p class="fade-up">hello</p>

 

The "fade-up" class comes from custom GSAP plugin.

 

Thanks in advance!

 

Link to comment
Share on other sites

The beauty of GSAP is that you can build what ever you like. In comparison to other plugins you've used that do one specific thing, GSAP can do anything you can think of! The only thing holding you back is your own creativity. 

 

For This I would give all the elements you want to fade up a class like you do in your example and then create an animation that does what you want and hook that to ScrollTrigger.

 

If you need further assistance. please provide a minimal demo so we can take a look at your setup in action. Hope it helps and happy tweening! 

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...