For the benefit of others in the thread, this is what I suggested
each x in range 60 #do the thing that you need for the animation sleep[1]end
and it worked like a charm!! :3