Demo: accessible modal window using ARIA and Vanilla JS
Woot, you can take the content of a hidden div
(and test the focus trap).
You may also test a loooooooooong…
content.
Yeah, with CSS transforms, it is smoother.
Here a description.
It’s so easy.
Styling modal components can be made for responsive websites (try to resize).