odin-default-css-exercises/animation/02-pop-up/solution/solution.html

23 lines
646 B
HTML
Raw Normal View History

2021-10-17 21:43:06 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Popup</title>
2021-10-18 21:33:12 +00:00
<link rel="stylesheet" href="solution.css" />
2021-10-17 21:43:06 +00:00
</head>
<body>
2022-01-12 20:38:29 +00:00
<div class="backdrop"></div>
2021-10-20 20:40:44 +00:00
<div class="popup-modal">
2022-01-12 20:38:29 +00:00
<h1>Look at me!</h1>
<p>I'm a pop up dialog!</p>
2021-10-20 22:05:31 +00:00
<button id="close-modal">Close Modal</button>
2021-10-18 21:33:12 +00:00
</div>
2022-01-12 20:38:29 +00:00
<div class="button-container">
<button id="trigger-modal">Open Modal</button>
</div>
2021-10-18 21:33:12 +00:00
<script src="solution.js"></script>
2021-10-17 21:43:06 +00:00
</body>
</html>