j
ничего не понятно, но так интересно*
Size: a a a
j
ничего не понятно, но так интересно*
II
AL
V
II
ВК
H
AL
H
A
I
MA
H
ЭЭ
I
ЭЭ
AL
RY
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;
};
RY