added css3 animation for modal