Javascript Promises for animation sequences
Emil Ong

I've had the same experience with Promises and animation and I came up with this small function to delay the chaining of a promise by a specified time in milliseconds. It's called waitInPromise.

Like what you read? Give Leonardo Favre a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.