modal-backdrop
Backdrop and animated panel of a <details> modal.
Where it can go
- Inside
details. - Out of place, it stays in the page and does nothing: removed when it has no next sibling element.
What it requires
Nothing beyond Smootify: it works on every plan.
Attributes on the element
- It reads
data-targetondetails. - It reads
data-overflow-bodyondetails. - It reads
data-fix-positionondetails. - It reads
data-open-animationondetails. - It reads
data-close-animationondetails. - Smootify writes
data-stateon it: do not set them yourself.
Loading
Its code loads only on pages that have modal-backdrop.