Apply direction aware hover animation to images