New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A Flipping Book Magic #11
Comments
13 years ago, I just started my career at a startup company. We were building a social APP running on After 1 year of using the fantastic The idea to test my
After 12 years, The Goals
The GeometryThe geometry is simple as in the old days, take the right top trigger area as an example:
Although there are so many details to consider, this model is good enough, to begin with. The Technical Bricks1. Draw the polygons, HTML, SVG, or Canvas?In 2023, we have so many choices to do this. But to consider actual content in the book, Leave this challenge to the next section, we can build our first implementation with 2. Build a maskAs you can see in the GIF, for the
At this point, everything comes to the right place. We can render any 2. A shadow to fool the eyesWe need shadows, without them the book will be like this:
To make it even better, we can use @9am/fliprWith all of those in mind, I build a lib. Feel free to try it~ npm install @9am/flipr What are the new things I've learned from building this?
Well, hope you enjoy it. I'll see you next time.
|
The text was updated successfully, but these errors were encountered: