Had to do this effect in a recent project and wanted to share it with you :). To change the background, edit the data-image on the canvas tag. You can also change the magnet effect intensity by changing the magnet variable
Click „Block Editor” to enter the edit mode. Use layers, shapes and customize adaptability. Everything is in your hands.