Jump to content
Search Community

how to use lottiescrolltrigger with timeline

Lovestoned test
Moderator Tag

Recommended Posts

Yeah, timing during scroll can be hard to wrap your head around. Think of the durations as a percentage of the scroll distance rather than seconds.

We cover it in the docs here -  "how duration works with scrub"

 

https://greensock.com/docs/v3/Plugins/ScrollTrigger#scrub

If you have any more questions, could you start a new thread with a minimal demo as we've deviated a little from the Lottie question.

Thanks!

  • Like 2
Link to comment
Share on other sites

Yeah, that's definitely not a GSAP-related question and I don't know how you'd do that or if you'd even need to because I think most servers these days already apply gzip compression, so you may not gain anything by trying to pre-zip the asset and un-zip it on the client end. 

  • Like 1
Link to comment
Share on other sites

1 hour ago, GreenSock said:

I think most servers these days already apply gzip compression, so you may not gain anything by trying to pre-zip the asset and un-zip it on the client end. 

 

Yep! Just a saw a tweet about that.

 

Quote

I caught a team shipping a js gzip library to decompress a tar.gz to deliver bundles of resources on the client the other day, completely overlooking that the browser can do the decompress natively.

 

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