change onmousemove and onclick to be based on distance, auto start animation