How to create hover effects on lines?

Hi team,

I want to create an interaction like this:

Where the cursor hovers over the lines in the background and changes color. Any tips or advice?