Jump to content
Search Community

ScrollTrigger resizing issue:

Victor Work test
Moderator Tag

Go to solution Solved by ZachSaucier,

Recommended Posts

@ZachSaucier
Thanks for helping me out... I appreciate it.

Seizing the opportunity... a quick question. 
Is there a way to fire a animation on ScrollTirgger before the elements enters on the viewport?
Something like this:
 

ScrollTrigger.batch(this.unwrapTexts, {
    onEnter: (elements) => {
        gsap.fromTo($(elements).find('.wrapped-p'), { yPercent: 140 }, { duration: 4, yPercent: 0, ease: 'expo.out', stagger: .06 })
    },
    start: 'top 110%',
    once: true
})

Thanks in advance.

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