And for smooth animations between a moving target, like a mouse, here's a really simple formula.   currentX += (mouseX - currentX) * someRatio; currentY += (mouseY - currentY) * someRatio;   See the Pen 65cdc21ce5c49da45709ff9d09d0a754?editors=0010 by osublake (@osublake) on CodePen  
    • Like
    3