Apply direction aware  2D/3D hover effect to images