Easiest way to create moving hole

Is the ground flat as in the gif? Or do you need varying terrain as well?