-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
@mifi
I have a lottie.json which have below markers
"markers": [
{ "tm": 0, "cm": "{\r\"name\":\"remove_background\"\r}", "dr": 25 },
{ "tm": 25, "cm": "{\r\"name\":\"removing_background\"\r}", "dr": 25 },
{ "tm": 50, "cm": "{\r\"name\":\"restore_background\"\r}", "dr": 25 },
{ "tm": 75, "cm": "{\r\"name\":\"loop_preloader_gradient\"\r}", "dr": 50 },
{ "tm": 125, "cm": "{\r\"name\":\"loop_preloader_bright\"\r}", "dr": 50 }
]
And I am trying to load the "loop_preloader_gradient " marker like named markers.
import Lottie from 'react-lottie-player';
function LoopyPreloader({ animationData, goTo }) {
return (
<Lottie
loop={true}
play={true}
animationData={animationData}
goTo={goTo} // loop_preloader_gradient
style={{ width: 68, height: 68 }}
/>
);
}
This causes a 2 seconds blink of "remove_background" animation and then renders "loop_preloader_gradient"
Metadata
Metadata
Assignees
Labels
No labels