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.
rohan
CodePen
ZENJMar
...
2 Replies
Mannix
Mannix6mo ago
maybe using starting-style just like Kevin did in the video will fix your issue
asdf_jkl__
asdf_jkl__OP6mo ago
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
Want results from more Discord servers?
Add your server