Jump to content
Search Community

Trouble with speeding up timeline

jakob zabala test
Moderator Tag

Recommended Posts

BTW - just a couple little syntax things too. Be sure to use defaults.

// bad
const tlbox1 = gsap.timeline({ paused: true, ease: "none" });

// good
const tlbox1 = gsap.timeline({ paused: true, defaults: { ease: "none" } });

And the duration should be in the vars.

// switch  this
tlbox1
  .to(".dr1", 0.01, { y: 0 }, 0)
  .to(".drt1", 0.1, { color: "white" }, 0);

// to this
tlbox1
  .to(".dr1", { duration: 0.01, y: 0 }, 0)
  .to(".drt1", { duration: 0.1, color: "white" }, 0);

Happy tweening.

:)

 

  • Like 2
Link to comment
Share on other sites

Thanks @PointC! i forgot to remove that, was baffled at the behaviour. 

 

How do I avoid the issue with when i hover of the image and then quickly to the black div with the words on it, the timeline glitches since it doesn't know if its coming or going. Is there a quick fix? my solution I've done in the past is make an empty div the size of the hover over area and and bring the z index up and just target my timelines to this empty div. I am looking for a quicker fix to this, is there one?

 

 

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