animating the cursor