I'm interested in creating a similar page flip effect and I'm curious about how turn.js achieved it. It seems to utilize CSS transformations like translation and rotation. Upon inspecting the code, I noticed there are two wrappers with different rotations - one with a positive angle (as seen in this answer) and the other with a negative angle that corresponds to the first.
When I tried replicating this on a test page using only rotations, I encountered an issue where the image appeared flipped upside down when reaching a certain angle. For example, when setting
-webkit-transform: rotate(180deg) translate(102px, -326px);
, the image displayed correctly. However, I couldn't figure out why turn.js doesn't seem to apply any transformations to the original page element itself.
You can check out my attempt on this jsfiddle.