Animation parts render incorrectly after build
See original GitHub issue- Tell us about your environment I’m building a website with SvelteKit (latest version, but still in beta), using an adapter for Vercel in the build process. Here are my dependencies just in case:
"@aws-sdk/client-sesv2": "^3.22.0",
"@sveltejs/adapter-vercel": "^1.0.0-next.26",
"@sveltejs/kit": "next",
"@types/tailwindcss": "^2.2.1",
"@typescript-eslint/eslint-plugin": "^4.19.0",
"@typescript-eslint/parser": "^4.19.0",
"autoprefixer": "^10.2.5",
"aws-sdk": "^2.947.0",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-svelte3": "^3.2.0",
"lottie-web": "^5.7.12",
"nodemailer": "^6.6.3",
"postcss": "^8.2.15",
"prettier": "~2.2.1",
"prettier-plugin-svelte": "^2.2.0",
"smoothscroll-polyfill": "^0.4.4",
"svelte": "^3.34.0",
"svelte-preprocess": "^4.0.0",
"tailwindcss": "^2.1.2",
"tslib": "^2.0.0",
"typescript": "^4.0.0"
-
Browser and Browser Version: Tested on Google Chrome 91 and Microsoft Edge 92.
-
After Effects Version: -
-
What did you do? Please explain the steps you took before you encountered the problem. I’ve loaded a Lottie JSON animation like so:
lottie.loadAnimation({
container: animationContainer,
renderer: 'svg',
loop: true,
autoplay: true,
path: '/images/welcome-anim.json',
name: 'welcome-animation'
})
(A link to the animation: https://assets1.lottiefiles.com/packages/lf20_pkc4qrpb.json)
- What did you expect to happen? In development it loaded as expected, but after building and shipping, part of the animation shifted around on the live website.
- What actually happened? Please include as much relevant detail as possible. The arm part of the guy in the animation is placed incorrectly after building out the project.
Here are screenshots before and after the build process:
- In development:

- After build:

Issue Analytics
- State:
- Created 2 years ago
- Comments:10
Top Results From Across the Web
5 Solutions if After Effects is Not Rendering Properly
5 Solutions if After Effects is Not Rendering Properly · 1. Use the Render Queue Panel · 2. Render Using Media Encoder ·...
Read more >Fix Render Mistakes Quickly in Blender with Border Rendering
Learn it in less than 2 minutes and save a ton of time later. " Animated Render Border" add-on: https://blendermarket.com/products/an.
Read more >Fix export issues in Premiere Pro - Adobe Support
Application hangs, freezes, or becomes unresponsive while rendering or exporting? We're here to help! Fix common export issues in 7 simple steps ...
Read more >My animation is not working when re rendering my react ...
After React rerender component it compares new render with the old one. And update only part that is changed. So you may try...
Read more >How can I render animation parts separately?
You can use View Layers. Create new View Layers with the little button in the upper-right corner of Blender, to the right of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thank you! The workaround works, it’s even safe to enable minification. This is the modified svelte.config.js.
this usually is related to code minifiers messing up with the lottie player library. In particular the expressions module. Can you add an error listener to the animation instance? It probably will log the error. These are some other similar issues that can help. https://github.com/airbnb/lottie-web/issues/2346 https://github.com/airbnb/lottie-web/issues/1120