renamed "direction" to "animationType" for animations