better browser support for animations in safari pt 1
small change
slightly less jank by writing the overlay into the DOM initially instead of when a modal is viewed