Animate a list of DOM elements one after another, where each animation starts only after the previous one completes.
Asked in frontend interviews at Google, Amazon, Flipkart and 1 more