At any time prior to the final disposition of a hearing pursuant to Section 257, the judge, referee, or juvenile hearing officer may, on motion of the minor, his or her parent, or guardian, or on its own motion, transfer the case to the county of the minor’s residence for further proceedings pursuant to Sections 258, 260, 261, and 262.