in this effect, im using `PointerEvent` to get the cursor position.
Soren
Visit on X@sorenblank8K followers
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
