modal show/hide animation
check this code pen
https://codepen.io/rohan031/pen/ZENJMar
when i click outside the modal why does my closing animation behaves differently than when closing with esc or close button.
2 Replies
maybe using starting-style just like Kevin did in the video will fix your issue
let me try
didn't work
and closing animation doesn't work in firefox
i checked it and found a patter when clicking on close button or using esc margin on dialog is not reset but when clicking on overlay margin-block is getting 0
fixed the issuse added inset: 0 to closing animation