✅ Solved: How to chain two lottie animations together using a trigger event

i have been trying to build a simple box opening animation using two separate lottie animations for closed and open state. I have currently added both these animations in idle as well as open state and I’m animating it like this

Timeline 1
Closed box animation - Opacity - 100%
Open box animation - Opacity - 0%

Timeline 2
Closed box animation - Opacity - 0%
Open box animation - Opacity - 100%

these timelines are connected via a trigger event.

Problem - After the trigger, second animation is not starting from the first frame. It’s already animating in the bg i guess with 0% opacity and just showing up wherever it is when triggered.

Please suggest how to do this the right way!

d11_purple_box (7).riv