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

23 lines
641 B
HTML
Raw Normal View History

2021-10-17 14:43:06 -07: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 12:21:32 -07:00
<link rel="stylesheet" href="style.css" />
2021-10-17 14:43:06 -07:00
</head>
<body>
2022-01-12 12:38:29 -08:00
<div class="backdrop"></div>
2021-10-20 15:05:31 -07:00
<div class="popup-modal">
2022-01-12 12:38:29 -08:00
<h1>Look at me!</h1>
<p>I'm a pop up dialog!</p>
2021-10-20 15:05:31 -07:00
<button id="close-modal">Close Modal</button>
</div>
2022-01-12 12:38:29 -08:00
<div class="button-container">
<button id="trigger-modal">Open Modal</button>
</div>
2021-10-20 15:05:31 -07:00
<script src="script.js"></script>
2021-10-17 14:43:06 -07:00
</body>
</html>