converted alert to CSS transitions instead of jQuery animates