in this effect, im using `PointerEvent` to get the cursor position.
Soren
Открыть в X@sorenblank8 тыс. подписчиков
267 260 просмотров
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.
Комментарии
Комментарии из оригинального поста в X (Twitter)
Комментариев пока нет
