How to make a sticky animation(lottieFile) and when it's done, move to the next section

hi, my english is not good, sorry. wish you can understand

i want somthing like this

when you scroll down, it stay in a section and play a animation, when the animation is done, it go on to the next section.

how can i do that?