Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Lovestoned

how to use lottiescrolltrigger with timeline

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

OSUblake and Cassie

 

thank you so much for your replies...duration is the point...solved my problem perfectly...I will share complete animation for to help other people...

 

superheroes!!!

 

  • Like 2
Link to comment
Share on other sites

do you know is there any way to play animation from zip file...I think there is a way but our lottie code compatible for that? my json file is about 3MB...any idea? I couldn't understand lottie tech yet :) confused.

 

Link to comment
Share on other sites

I'm afraid I don't understand what you're asking here - sorry.

We also try to keep the forums to GSAP specific questions. Lottie isn't a GSAP product.

 

Maybe try asking in the Lottie forums - https://forum.lottiefiles.com/

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