In this snippet Giana shows you how you can target elements based on their position to a hovered element using CSS sibling selector.
If you are having trouble with the pen, try the archived copy on GitHub
CSS Sibling Selector Snippet
See the Pen CSS sibling selector with hover state by Giana (@giana) on CodePen.0