Skip to content

Commit

Permalink
design: 커서 위치 이동 로직 수정 (translate3d에서 transform 사용으로 변경)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoonkyoungme committed Sep 11, 2024
1 parent 3d4cc1e commit 30bce7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Home/components/CustomCursor/CustomCursor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const CustomCursor = ({ text = '' }: CustomCursorProps) => {

useEffect(() => {
if (cursorRef.current) {
cursorRef.current.style.transform = `translate3d(${mousePosition.pageX}px, ${mousePosition.pageY}px, 0)`;
cursorRef.current.style.transform = `translate(${mousePosition.pageX}px, ${mousePosition.pageY}px)`;
}
}, [mousePosition]);

Expand Down

0 comments on commit 30bce7a

Please sign in to comment.