use transition to draw paths