Syntrix Posted October 27, 2021 Share Posted October 27, 2021 I am trying to get a Lottie animation to play in a GSAP timeline. In the scripts section, the 'Path' i have one json file commented out which does work, but the animation path i copied from https://lottiefiles.com/web-player?lottie_url=https%3A%2F%2Fassets4.lottiefiles.com%2Fprivate_files%2Flf30_ox0nrliv.json does not play. However, it is being added to the container. How do i get it to play? Any help i would be grateful. See the Pen xxLdMQX by Syntrix (@Syntrix) on CodePen Link to comment Share on other sites More sharing options...
Solution akapowl Posted October 27, 2021 Solution Share Posted October 27, 2021 Hello @Syntrix Check the versions on the two json files - the one that doesn't work is a 5.5.7 in comparison to the 5.1.1 of the one that works. You will have to load a newer version of lottie if you want it to work, I guess. See the Pen 8abc23e7c8e89831d04f51e4ec90c58e by akapowl (@akapowl) on CodePen 2 Link to comment Share on other sites More sharing options...
Syntrix Posted October 27, 2021 Author Share Posted October 27, 2021 Thanks @akapowl That got the job done 👊 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now