Added the ability to define an opening and closing animation as well as an opening and closing animation speed