pg for heroku
resolve the promise after the animation is complete.