How to recreate this iconic Super Mario 64 deformation feature in three.js

I saw a video on youtube and wondering how can we create this deformation type effect with three.js.

Here take a look:

Three.js is so versatile, that we can recreate this deformation in several ways. Here is one of them:


Wow! that’s near perfect, Thanks alot.