added animation on class box