Try to keep the origin point at the same distance from the bottom of the image on each frame.
You can search tutorials section for examples. Like I said, it's a common trick, so you will definitely find some.
Develop games in your browser. Powerful, performant & highly capable.