Added transitions to open and close the video player