Adding opening animation event for modals, since it was also a timer