alter transit jquery function to handle the rotation over time