How to create a pop-up without JavaScript
Ever wanted a pop-up mechanism on your website, but you don't want to use JavaScript? Here's how:
-
Add a
<details>and<summary>to your document -
Insert a
<div>to your<details>element -
Add a scaling animation to this
<div> -
Add this animation to the
<div>when the[open]attribute is toggled on the<details>element
Toggle the How it works button for more info.