``` function rotate_atc_from_to(atc, previous_pocket, next_pocket) { atc.direction = "Shortest" console.log(atc_holder.rotation); atc.from = 360/12 * previous_pocket + 90; atc.to = 360/12 * next_pocket + 90; var slots_num = 0; if(next_pocket > previous_pocket){ slots_num = next_pocket - previous_pocket; } else { slots_num = previous_pocket - next_pocket; }; console.log(slots_num); atc.duration = (slots_num+1) * 1000 atc.restart(); }