-
Notifications
You must be signed in to change notification settings - Fork 0
/
modal.html
123 lines (117 loc) · 4.09 KB
/
modal.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="x-ua-compatible" content="IE=EDGE">
<meta name="Author" content="이제하leejeha">
<meta name="keywords" content="웹퍼블리싱,webpublishing,반응형웹Web,반응형웹">
<meta name="description" content="3년차 웹퍼블리셔입니다">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>LeeJeha portfolio</title>
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/animation.css">
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/jquery-migrate-1.4.1.min.js"></script>
<!-- <script src="js/main.js"></script> -->
<script>
$(document).ready(function(){
function animatePop(){
$(".button-wrap .button").on("click",function(){
var buttonId = $(this).attr('id');
// console.log(buttonId);
if($("#modal-container").hasClass("out")){
$("#modal-container").removeClass("out").addClass("two");
}else{
$('#modal-container').addClass("two");
}
$('body').addClass('modal-active');
})
$('#modal-container').on("click", function(){
$(this).removeClass("two").addClass('out');
$('body').removeClass('modal-active');
});
}
animatePop();
});
</script>
</head>
<body>
<!-- header_container// -->
<section class="header_container">
<header class="main_header">
<div class="flexbox">
<h1 class="logo">
<a href="/" class="rale">LEE JEHA</a>
</h1>
<nav class="navlink">
<ul class="rale">
<li>
<a href="#con1">INTRO</a>
</li>
<li>
<a href="#con2">PORTFOLIO</a>
</li>
<li>
<a href="#con3">CONTACT</a>
</li>
</ul>
</nav>
</div>
</header>
<!-- lnb// -->
<div class="lnb shadow">
<div class="list_box">
<strong class="list_title rale">LEE JEHA</strong>
<ul class="list_menu rale">
<li class="lnb_list">
<a href="#con1">INTRO</a>
</li>
<li class="lnb_list">
<a href="#con2">PORTFOLIO</a>
</li>
<li class="lnb_list">
<a href="#con3">CONTACT</a>
</li>
</ul>
<button class="btn_close">
<img src="img/icon/close2.png" alt="메뉴 닫기버튼">
</button>
</div>
</div>
<!-- //lnb-->
</section>
<!-- //header_container -->
<div class="section_container">
<!-- listWork// -->
<section id="listWork" class="content list_work">
<h3 class="list_title rale">Projects</h3>
<div id="modal-container">
<div class="modal-background">
<div class="modal">
<h2>I'm a Modal</h2>
<p>Hear me roar.</p>
<svg class="modal-svg" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" preserveAspectRatio="none">
<rect x="0" y="0" fill="none" width="226" height="162" rx="3" ry="3"></rect>
</svg>
</div>
</div>
</div>
<div class="modal-list-content">
<h1>Modal Animations</h1>
<div class="button-wrap">
<!-- <div id="one" class="button">Unfolding</div> -->
<div id="two" class="button">Revealing</div>
<!-- <div id="three" class="button">Uncovering</div>
<div id="four" class="button">Blow Up</div><br>
<div id="five" class="button">Meep Meep</div>
<div id="six" class="button">Sketch</div>
<div id="seven" class="button">Bond</div> -->
</div>
</div>
</section>
<!-- //listWork -->
</div>
</body>
</html>