If the software you are using is STAAD.Pro, do this. After the analysis is completed, go to the Tools menu and choose "Create AVI File". Under Animation Type, you will find two choices:
Deflection : This will consider the deflection at Nodes only, with a straight line joining the deflection at nodes for all entities.
Sectional Displacement : For frame members, this plots the deflected curve by connecting the values at 13 points along the length for frame members, but straight lines between nodes for plates and solids.
The Total number of frames, and Frame Rate determine the smoothness and speed of the animation. More frames will make it look better, but increase the size of the AVI file.
Before you create the AVI, adjust the scale of the deflection diagram so that the green colored lines are distinguishable from the lines that represent the undeflected structure.