How to animate a physic box or something geometry

I’d like to know how to animate a physic box or something geometry.
I search in google, i found: https://threejs.org/examples/misc_animation_keys.html

I try and test follow a three.js example
https://abc3dz.github.io/YingLak/wrong
It’s animate geometry.
It is’t animate physic.

My simple demo
Screenshot%20(44)
https://abc3dz.github.io/YingLak/simplebox
https://github.com/abc3dz/YingLak