add css transiton animation