RY
const updateCursor = () => {
const diffX = Math.round(mouse.x - pos.x);
const diffY = Math.round(mouse.y - pos.y);
pos.x += diffX * speed;
pos.y += diffY * speed;
const angle = getAngle((diffX*6), (diffY*6));
const squeeze = getSqueeze((diffX*6), (diffY*6));
const scale = 'scale(' + (1 + squeeze) + ', ' + (1 - squeeze) +')';
const rotate = 'rotate(' + angle +'deg)';
const translate = 'translate3d(' + pos.x + 'px ,' + pos.y + 'px, 0)';
const width =
cursor.style.transform = translate;
cursorCircle.style.width = width;
cursorCircle.style.transform = rotate + scale;
};