updated callback functionality and added $.animate for non csstransition supporting browsers