Hover snake effect

Hey! I am trying to recreate this effect when hovering on the page. Any idea on how to create this? Motion Sickness — A creative agency based in Aotearoa.

hi,
this might be what you are looking for: https://www.youtube.com/watch?v=8Jjgyd3I2-g
The code is in the description.