Add option to control expand animation.