How to make 3D background shape with animation on mouse move


I’m trying to make something similar as this website :

There is a 3D shape that sort of rotate on mouse move.

What path should I follow to reproduce something like this ? Should I go with Three.js and making the shape I want or Is there a simpler solution ?

You might be able to use an html canvas and use PJS to make what you want.