-
Notifications
You must be signed in to change notification settings - Fork 0
/
imageType02.html
181 lines (178 loc) · 4.92 KB
/
imageType02.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!DOCTYPE html>
<html lang="ko">
<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>이미지 유형 02</title>
<style>
/* fonts */
@import url('https://webfontworld.github.io/gmarket/GmarketSans.css');
.gmarket {
font-family: 'GmarketSans';
font-weight: 400;
}
/* reset */
* {
margin: 0;
padding: 0;
}
h1, h2, h3, h4, h5, h6 {
font-weight: normal;
}
a {
text-decoration: none;
color: #000;
}
img {
width: 100%;
}
/* common */
.container {
width: 1160px;
padding: 0 20px;
margin: 0 auto;
min-width: 1160px;
}
.section {
padding: 120px 0;
}
.section > h2 {
font-size: 50px;
line-height: 1;
text-align: center;
margin-bottom: 20px;
}
.section > p {
font-size: 22px;
font-weight: 300;
text-align: center;
margin-bottom: 70px;
color: #666;
}
/* imageType */
.image__inner {
display: flex;
justify-content: space-between;
}
.image {
width: 32%;
position: relative;
overflow: hidden;
}
.image__box {
height: 100%;
}
.image__box img {
transition: all 0.5s ease-in-out;
}
.image__desc {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
text-align: center;
padding: 20px;
box-sizing: border-box;
backdrop-filter: blur(16px);
transition: all 0.3s ease-in-out;
}
/* 박스 색 설정 */
.img1 > .image__desc {
background: rgba(219, 217, 69, 0.452);
}
.img1 > .image__desc h3 {
color: #000;
}
.img1 > .image__desc .more {
color: #000;
}
.img2 > .image__desc {
background-color: rgba(148, 121, 74, 0.452)
}
.img2 > .image__desc h3 {
color: #fff;
}
.img2 > .image__desc .more {
color: #fff;
}
.img3 > .image__desc {
background-color: rgba(27, 23, 56, 0.452)
}
.img3 > .image__desc h3 {
color: #fff;
}
.img3 > .image__desc .more {
color: #fff;
}
/* 애니메이션 효과 */
.img1 .image__desc {
bottom: -100px;
}
.img1:hover .image__desc {
bottom: 0;
}
.img2 .image__desc {
bottom: -100px;
}
.img2:hover .image__desc {
bottom: 0;
}
.img3 .image__desc {
bottom: -100px;
}
.img3:hover .image__desc {
bottom: 0;
}
.image:hover .image__box img {
transform: scale(1.05);
}
.image__desc h3 {
font-size: 24px;
margin-bottom: 5px;
}
.image__desc .more {
font-size: 16px;
font-weight: 300;
}
.image__desc .more:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<section id="imageType02" class="image__wrap gmarket section">
<h2>귀여운 동물들</h2>
<p>귀엽고 귀여운 동물들 리스트 입니다.</p>
<div class="image__inner container">
<article class="image img1">
<figure class="image__box">
<img src="img/image_bg02_01.jpg" alt="멍멍이">
</figure>
<div class="image__desc">
<h3>멍멍이</h3>
<a href="/" class="more" title="자세히 보기">자세히 보기</a>
</div>
</article>
<article class="image img2">
<figure class="image__box">
<img src="img/image_bg02_02.jpg" alt="토끼">
</figure>
<div class="image__desc">
<h3>토끼</h3>
<a href="/" class="more" title="자세히 보기">자세히 보기</a>
</div>
</article>
<article class="image img3">
<figure class="image__box">
<img src="img/image_bg02_03.jpg" alt="판다">
</figure>
<div class="image__desc">
<h3>판다</h3>
<a href="/" class="more" title="자세히 보기">자세히 보기</a>
</div>
</article>
</div>
</section>
</body>
</html>