質問編集履歴

1

css追加

2019/12/15 06:39

投稿

a10
a10

スコア6

test CHANGED
File without changes
test CHANGED
@@ -78,6 +78,112 @@
78
78
 
79
79
  ```
80
80
 
81
+ ```css
82
+
83
+ /*メニュー本体(抜粋)*/
84
+
85
+ #nav-prac-sp-hamburger {
86
+
87
+ display: none;
88
+
89
+ position: absolute;
90
+
91
+ top: 0;
92
+
93
+ left: 0;
94
+
95
+ z-index: -1;
96
+
97
+ background-color: black;
98
+
99
+ color: white;
100
+
101
+ position: fixed;
102
+
103
+ z-index: 99;
104
+
105
+ width: 100%;
106
+
107
+ height: 100vh;
108
+
109
+ box-sizing: border-box;
110
+
111
+ margin: 0;
112
+
113
+ background: rgba(0, 0, 0, 0.95);
114
+
115
+ font-size: 20.8px;
116
+
117
+ }
118
+
119
+
120
+
121
+ /*メニュー開閉操作*/
122
+
123
+ #nav-prac-sp-hamburger.open {
124
+
125
+ display: block;
126
+
127
+ z-index: 99;
128
+
129
+ animation: showNav .5s ease 0s 1 normal;
130
+
131
+ }
132
+
133
+ #nav-prac-sp-hamburger.close {
134
+
135
+ display: block;
136
+
137
+ opacity: 0;
138
+
139
+ animation: hideNav .5s ease 0s 1 normal;
140
+
141
+ }
142
+
143
+
144
+
145
+ @keyframes showNav {
146
+
147
+ 0% {
148
+
149
+ opacity: 0;
150
+
151
+ }
152
+
153
+ 100% {
154
+
155
+ opacity: 1;
156
+
157
+ }
158
+
159
+ }
160
+
161
+
162
+
163
+ @keyframes hideNav {
164
+
165
+ 0% {
166
+
167
+ opacity: 1;
168
+
169
+ z-index: 99;
170
+
171
+ }
172
+
173
+ 100% {
174
+
175
+ opacity: 0;
176
+
177
+ z-index: -1;
178
+
179
+ }
180
+
181
+ }
182
+
183
+
184
+
185
+ ```
186
+
81
187
 
82
188
 
83
189
  ```Javascript