Using :hover and the sibling selector (~), you can apply different styles to elements based on their position. Removing the visibility transition gets rid of the previous element’s ghost for a cleaner slide-in with no slide-out. This is a wonderful demo and a very useful snippet for directional aware hover effect. Coded by Giana
Check out this Pen!
GIPHY App Key not set. Please check settings