How to play Lottie animation 1 then Lottie animation 2

How to play animation 1 then animation 2. Make animation 1 dissappear after playing and then make animation 2 trigger to play on a loop directly positioned where animation 1 was.

What would the html / css code look like?