-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
merge and sequence multiple Lottie animation into single animation #18
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. |
👋@anilsoniaurionpro, I've got the exact same need for my current project. Did you make it somehow and if not, do you have any hints? Thanks for your help! |
I didn't find any lib to do this. I ended up understanding enough lottie json schema to dynamically merge multiple animations (in js). |
thanks @anilsoniaurionpro. I managed to merge my 2 lottie files (same width / height / frames) by doing the same stuff as you did. It wasn't that hard actually, the only "issue" was to rename the refID in the Precomposition layers using some assets. |
Before merging I did string replacement . Like jsonStr.replaceAll("comp1", nanoid()). do this for comp0 ... to comp20. Assuming there are max of 21 comps. Same for assets. |
I created a method that took a lottie json and returns a new lottie json (which merges all the layers into a precomp first). After this multiple json are merged in single one. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. |
Overview
Allow to merge or sequence several Lottie animations into single animation (JSON).
Allow to dynamically create animation from other animations.
...
Type
Motivation
Labels
Type: Feature Request
label to this issue.The text was updated successfully, but these errors were encountered: