That would enable rendering lottie files which have name of the assets instead of base64 encoded images. We could parametrize path programatically to use the same lottie animation file with different assets instead of generating multiple lottie files with different base64 encoded images.
Feature Request 🛍️
lottie-web
supportsassetsPath
parameter (https://github.com/airbnb/lottie-web/wiki/loadAnimation-options#assetspath) in order to specify root folder of used assets inside the animation. Right now it's only possible to use base64 encoded images inside to lottie json file.Use Case
That would enable rendering lottie files which have name of the assets instead of base64 encoded images. We could parametrize path programatically to use the same lottie animation file with different assets instead of generating multiple lottie files with different base64 encoded images.
Possible Solution
Adding optional parameter
assetsPath
toLottieProps
type https://github.com/remotion-dev/remotion/blob/0687141bc90848aed874f91de6676ff354c3a942/packages/lottie/src/types.ts#L22 and pass it intolottie.loadAnimation
function call.https://github.com/remotion-dev/remotion/blob/0687141bc90848aed874f91de6676ff354c3a942/packages/lottie/src/Lottie.tsx#L52