Fixed animation and cursor overlapping problem