Javascript Promises for animation sequences
Emil Ong
1192

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. https://gist.github.com/leofavre/71fcb20bec2c2fb9031b90b79f9647b2

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.