Jump to content
Search Community

Duration property ignored for some elements

Kejas test
Moderator Tag

Recommended Posts

Your demo has errors. It's ease: "none" not ease: none.

 

Think of a fromTo as just a set and to. You don't put stuff like duration or easing in a set.

gsap.set(".stagecover", { autoAlpha: 1 });
gsap.to(".stagecover", { autoAlpha:0, duration: 5, ease: "none" });

// or
gsap.fromTo(".stagecover", { autoAlpha: 1 }, { autoAlpha:0, duration: 5, ease: "none" });

 

 

  • Like 4
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...