added leave css animation class