created the cursor animation. fixed #47