A recent CodePen Spark led me to this interesting demo. It has a cool effect, but I thought it used too much JavaScript, so I decided on a CSS version. Plus, I thought it would look better if the flip effect was “hinged” on the top/bottom edge, depending on the direction.
After about half an hour, I created this:

Let’s explore how I did it… and what went wrong.
The Layout Basics
We have a