Take, for example, a square with points A, B, C and D:
a
I want to turn it from left to right so that points A and C are closer to B and D, and B and D remain in position.
This is very similar to turning a page in a book, so the page flips to the other side, but points B and D do not move.
The closest I have is https://jsfiddle.net/pa9ykhwa/ , which is basically
div{ transform-style: preserve-3d; transition-duration: 1s; } div:hover { transform-origin: 100%; transform: rotateY(180deg) translateZ(0); }
The problem is that you can clearly see how points B and D move.
source share