Added a css transitions to the modal.