add animation controlled by event