Add class based on slide animation type.