initial adjustment to use transitionend functions
css transition callbacks continued - slight cleanup
clean up - separated animate function out for readability, added slide and load callbacks