質問編集履歴

1

コードを追加しました。

2019/05/30 09:11

投稿

hasa
hasa

スコア12

test CHANGED
File without changes
test CHANGED
@@ -31,3 +31,217 @@
31
31
 
32
32
 
33
33
  どうぞよろしくお願い致します。
34
+
35
+
36
+
37
+ ##html
38
+
39
+ ```
40
+
41
+ <section id="anime">
42
+
43
+ <video muted src="movie/opening.mp4" autoplay loop></video>
44
+
45
+ <div class="box">
46
+
47
+ <p class="logo"><img src="img/logo.png"/></p>
48
+
49
+ <input type="button" class="skip" value="SKIP">
50
+
51
+ </div>
52
+
53
+ </section>
54
+
55
+
56
+
57
+ <section id="container">
58
+
59
+ <a href="#">aaaaa</a>
60
+
61
+ </section>
62
+
63
+ ```
64
+
65
+ ##js
66
+
67
+ ```
68
+
69
+ //オープニング
70
+
71
+ $(function () {
72
+
73
+ $("#container").css("display", "none");
74
+
75
+ setTimeout(function () {
76
+
77
+ $('#anime').fadeOut();
78
+
79
+ }, 24000);
80
+
81
+ });
82
+
83
+ $(function () {
84
+
85
+ $("#container").css({
86
+
87
+ opacity: '0'
88
+
89
+ });
90
+
91
+ setTimeout(function () {
92
+
93
+ $("#container").css("display", "block");
94
+
95
+ $("#container").stop().animate({
96
+
97
+ opacity: '1'
98
+
99
+ }, 2000); //1秒かけてコンテンツを表示
100
+
101
+ }, 24000); //約25秒後に
102
+
103
+ });
104
+
105
+
106
+
107
+ //オープニング SKIP
108
+
109
+ $(function () {
110
+
111
+ $(".skip").click(function () {
112
+
113
+ $('#anime').css('display', 'none');
114
+
115
+ $('#container').css('display', 'block');
116
+
117
+ $('#container').css('opacity', '1');
118
+
119
+ });
120
+
121
+ });
122
+
123
+ ```
124
+
125
+
126
+
127
+ ##css
128
+
129
+ ```
130
+
131
+ #anime {
132
+
133
+ width: 100%;
134
+
135
+ height: 100%;
136
+
137
+ background-color: #fff;
138
+
139
+ position: relative;
140
+
141
+ }
142
+
143
+ #anime video {
144
+
145
+ text-align: center;
146
+
147
+ margin: auto;
148
+
149
+ width: auto;
150
+
151
+ height: auto;
152
+
153
+ min-width: 100%;
154
+
155
+ min-height: 100%;
156
+
157
+ position: fixed;
158
+
159
+ top: 0;
160
+
161
+ left: 0;
162
+
163
+ right: 0;
164
+
165
+ bottom: 0;
166
+
167
+ z-index: 1;
168
+
169
+ }
170
+
171
+ #anime .box {
172
+
173
+ text-align: center;
174
+
175
+ margin: auto;
176
+
177
+ width: 100%;
178
+
179
+ position: absolute;
180
+
181
+ top: 35%;
182
+
183
+ left: 0;
184
+
185
+ right: 0;
186
+
187
+ bottom: 0;
188
+
189
+ z-index: 2;
190
+
191
+ }
192
+
193
+ #anime .logo {
194
+
195
+ text-align: center;
196
+
197
+ margin: 0 auto 30px;
198
+
199
+ width: 250px;
200
+
201
+ }
202
+
203
+ #anime .logo img {
204
+
205
+ width: 100%;
206
+
207
+ }
208
+
209
+ #anime .skip {
210
+
211
+ text-align: center;
212
+
213
+ margin: 0 auto;
214
+
215
+ padding: 15px 0 0;
216
+
217
+ width: 100px;
218
+
219
+ background: rgba(0,0,0,0);
220
+
221
+ color: #FFF;
222
+
223
+ font-size: 2.6rem;
224
+
225
+ font-family: 'font_bn';
226
+
227
+ letter-spacing: 0.1em;
228
+
229
+ outline: 0;
230
+
231
+ border: none;
232
+
233
+ border-top: 1px solid #fff;
234
+
235
+ transition: all 0.5s;
236
+
237
+ display: block;
238
+
239
+ }
240
+
241
+ #anime .skip:hover {
242
+
243
+ color: #AA0039;
244
+
245
+ }
246
+
247
+ ```