top bar animate needed to be inside done function for heroku