#689·turn.js

这不是一个问题,而是一个为 turn.js 5 提供的"修复"/建议,适用于任何想了解此问题的人

作者: turhtkar创建于 2024年12月13日更新于 2024年12月13日

I'm working on a digital book, anyway I tried to make the pages more profound. I realized there is the shadow that I can manipulate, but I didn't want a static shadow. Meaning that if a book is displayed double and it is rtl or ltr, I want the shadow to only appear on the side whose book direction is, making it clearer for the actual direction. But that means we need to know if we're at the first page, and which direction and when we turn, and make it smoothly. Also, I noticed there would be a flickering in the current update shadow in turn js 5 (look for the repo on GitHub and you will find it).

内容来源: blasten/turn.js