The form will as though be unrolled from the middle.
And that it at closing was contracted into the middle we write in OnClose:
TRect r1, r2;
r1 = Rect (Left+Width/2,Top+Height/2,Left+Width/2,Top+Height/2);
r2 = BoundsRect;
DrawAnimatedRects (Handle,IDANI_CAPTION,&r2,&r1); //the sequence of the last parameters changes only