syms u v t
r=0.9; % fixed radius
x = r*cos(u)*sin(v);
y = r*sin(u)*sin(v);
z = r*cos(v);
f=figure;
ax=axes;
axis equal;
view(3); %3D view
ax.XLim=[-1 1];
ax.YLim=[-1 1];
ax.ZLim=[-1 10];
ax.Box='on'; % border
hold on
f = fanimator(@fsurf,x,y,z+t,'AnimationRange',[0 9]);
hold off
playAnimation