Jump to content
Search Community

Start and end of an animation

Kenjee test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hello everyone,

 

I use GSAP since a while now but i still wondering...  I use scrollMagic to animate scrolling page and i do something like that :
 

var scene = new ScrollMagic.Scene({ 
    triggerElement: "#element", 
    triggerHook: "onEnter", 
    duration: "100%"
}),
sceneTl = new TimelineMax();

sceneTl.from("#element", 1, { y: 50, ease: Power4.easeInOut });

 

But... i don't understand why when i use this triggerHook, my animation always start later and finish too soon. On my 100%, it animation around 70-80% of it. Is thre a reason for that? Is there a way to really start my animation when it's trigger and finish at the end?

 

Thanks for helping!

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