-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcss_sw.css
More file actions
120 lines (105 loc) · 2.05 KB
/
css_sw.css
File metadata and controls
120 lines (105 loc) · 2.05 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
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
/* 초기화 */
html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
/* 기본 글 형태 지정 */
h3 {
font-family: 'Georgia';
color: #ffffff;
text-align: center;
font-style: italic;
font-weight: lighter;
margin-top: 50px;
font-size: 20px;
}
/* 오른쪽에 글띄우기 */
.intext_right {
float: right;
margin-top: 35px;
padding-left: 50px;
white-space: pre-line;
}
/* 왼쪽에 글띄우기 */
.intext_left {
float: left;
margin-top: 35px;
padding-right: 50px;
white-space: pre-line;
}
/* 이미지,글 투명하게 만들었다가 떠오르게 만들기 */
.cover img,
.cover h3 {
opacity: 0;
transform: translateY(50px);
transition: opacity 1s ease-in, transform 1s ease-in;
}
/* 상위개념의 opacity가 0이라 사라지기만 하고 나타나지않아서 visible이 추가될때 나타나게 함. */
.pages.visible .cover img,
.pages.visible .cover h3 {
opacity: 1;
transform: translateY(0);
}
/* 이미지 너무 붙어있어서 조금 떨어뜨림 */
.cover img {
margin-left: 50px;
}
/* 이미지들 크기조정 */
.list_img {
width: 490px;
height: 368px;
display: block;
margin: 7vh 5vh;
margin-bottom: 50px;
}
.list_img2 {
width: 360px;
height: 480px;
display: block;
margin: 7vh 5vh;
margin-bottom: 50px;
}
/* 이미지 수평정렬 */
.sort_img {
display: inline-flex;
margin-top: 60px;
}
/* 스크롤 조정 부분 */
html {
scroll-behavior: smooth;
}
#container {
width: 100%;
height: 100vh;
overflow: auto;
scroll-snap-type: y mandatory;
}
/* 각 페이지 하나 맞추기 */
.pages {
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
scroll-snap-align: center;
}
/* 뒷배경 색 조정 */
.pages:nth-child(1) {
background-color: rgb(163, 204, 163);
background-size: cover;
}
.pages:nth-child(2) {
background-color: #9d949e;
background-size: cover;
}
.pages:nth-child(3) {
background-color: #99886e;
background-size: cover;
}
.pages:nth-child(4) {
background-color: #8a6e8a;
background-size: cover;
}