Animation implementation in react

enter image description here

Need to make this type of line animation in 2d and it should move according to mouse movement.ex id I move mouse to right of line it should curve from top or arch to right viceversa

Do you know any good library to implement this 2d animation in react and approach

I am confused between so many libraries in internet