Animate[Plot3D[Sin[Pi*x/n]*Cos[Pi*y/n], {x, -2, 2}, {y, -2, 2}], {n, 1, 4}]