Skip navigation
in this effect, im using `PointerEvent` to get the cursor position.
0:00 / 0:20

in this effect, im using `PointerEvent` to get the cursor position.

Soren

@sorenblank8K followers

Visit on X
1,980 likesDownloadOriginal post

267,260 views

in this effect, im using `PointerEvent` to get the cursor position. then calculating a progress value (0 to 1) based on where your cursor is relative to the book's spine. each page then uses `calc()` to multiply its target rotation by the progress.

Comments

Comments from the original post on X (Twitter)

No comments yet