-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
76 lines (76 loc) · 1.63 KB
/
Copy pathstyle.css
File metadata and controls
76 lines (76 loc) · 1.63 KB
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
html {
font-family: 'Noto Sans KR', sans-serif;
}
body {
margin: 0;
}
div, section, header, footer, p, h1, h2 {
box-sizing: border-box;
}
a {
color: royalblue;
}
img {
max-width: 100%; /* 최대 width를 부모의 width로 */
height: auto; /* 이미지 원본 비율에 맞게 */
}
.scene-img {
max-height: 100vh; /* 최대 height를 브라우저의 height로 */
}
.global-width {
max-width: 620px;
margin: 0 auto; /* 좌우 가운데 정렬 */
padding: 0 1rem; /* 1rem = 최상위 루트 html의 디폴트 size = 16px */
}
.graphic-item {
position: absolute;
top: 0;
left: 0;
display: flex;
align-items: center; /* 상하 정렬 */
justify-content: center; /* 좌우 정렬 */
width: 100%;
height: 100%;
opacity: 0;
transition: 0.5s;
will-change: opacity;
}
.visible {
opacity: 1;
}
.scroll-graphic {
position: sticky;
top: 0; /* 부모 영역 스크롤 끝날 때까지 고정 */
height: 100vh; /* 1vh = 브라우저 높이의 100분의 1 */
overflow-x: hidden;
}
.scroll-text {
position: relative; /* 이미지 앞으로 이동 */
padding-bottom: 1px; /* 하단 margin 병합 방지용 */
}
.step {
margin-bottom: 60vh;
padding: 0.5rem 1rem;
border-radius: 10px;
background-color: rgba(255, 255, 255, 0.8);
box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}
.bird {
position: absolute;
left: 0;
bottom: 70%;
width: 100px;
transform: translateX(-100%); /* 화면 바깥으로 */
transition: 1.5s 0.5s linear; /* 재생시간 지연시간 일정하게*/
}
[data-index="5"] .bird {
left: 30%;
bottom: 30%;
}
.global-footer {
padding: 2rem 0;
text-align: center;
}
.strikethrough {
text-decoration: line-through; /* 취소선 */
}