Try to hover this block from different directions

Hover me!

I really don't know how this does what it does. Copy and paste and tweak. I was just happy to get a little webpage working that did something cool.
Day 2 of 100
Code adapted a tiny bit from this jsfiddle Created by!/kizmarh