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

23 lines
641 B
HTML
Raw Permalink 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-21 19:21:32 +00:00
<link rel="stylesheet" href="style.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 22:05:31 +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>
</div>
2022-01-12 20:38:29 +00:00
<div class="button-container">
<button id="trigger-modal">Open Modal</button>
</div>
2021-10-20 22:05:31 +00:00
<script src="script.js"></script>
2021-10-17 21:43:06 +00:00
</body>
</html>