質問編集履歴
1
コードを追加しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -14,4 +14,111 @@
|
|
14
14
|
こちらを解消する方法はありますでしょうか?
|
15
15
|
|
16
16
|
|
17
|
-
どうぞよろしくお願い致します。
|
17
|
+
どうぞよろしくお願い致します。
|
18
|
+
|
19
|
+
##html
|
20
|
+
```
|
21
|
+
<section id="anime">
|
22
|
+
<video muted src="movie/opening.mp4" autoplay loop></video>
|
23
|
+
<div class="box">
|
24
|
+
<p class="logo"><img src="img/logo.png"/></p>
|
25
|
+
<input type="button" class="skip" value="SKIP">
|
26
|
+
</div>
|
27
|
+
</section>
|
28
|
+
|
29
|
+
<section id="container">
|
30
|
+
<a href="#">aaaaa</a>
|
31
|
+
</section>
|
32
|
+
```
|
33
|
+
##js
|
34
|
+
```
|
35
|
+
//オープニング
|
36
|
+
$(function () {
|
37
|
+
$("#container").css("display", "none");
|
38
|
+
setTimeout(function () {
|
39
|
+
$('#anime').fadeOut();
|
40
|
+
}, 24000);
|
41
|
+
});
|
42
|
+
$(function () {
|
43
|
+
$("#container").css({
|
44
|
+
opacity: '0'
|
45
|
+
});
|
46
|
+
setTimeout(function () {
|
47
|
+
$("#container").css("display", "block");
|
48
|
+
$("#container").stop().animate({
|
49
|
+
opacity: '1'
|
50
|
+
}, 2000); //1秒かけてコンテンツを表示
|
51
|
+
}, 24000); //約25秒後に
|
52
|
+
});
|
53
|
+
|
54
|
+
//オープニング SKIP
|
55
|
+
$(function () {
|
56
|
+
$(".skip").click(function () {
|
57
|
+
$('#anime').css('display', 'none');
|
58
|
+
$('#container').css('display', 'block');
|
59
|
+
$('#container').css('opacity', '1');
|
60
|
+
});
|
61
|
+
});
|
62
|
+
```
|
63
|
+
|
64
|
+
##css
|
65
|
+
```
|
66
|
+
#anime {
|
67
|
+
width: 100%;
|
68
|
+
height: 100%;
|
69
|
+
background-color: #fff;
|
70
|
+
position: relative;
|
71
|
+
}
|
72
|
+
#anime video {
|
73
|
+
text-align: center;
|
74
|
+
margin: auto;
|
75
|
+
width: auto;
|
76
|
+
height: auto;
|
77
|
+
min-width: 100%;
|
78
|
+
min-height: 100%;
|
79
|
+
position: fixed;
|
80
|
+
top: 0;
|
81
|
+
left: 0;
|
82
|
+
right: 0;
|
83
|
+
bottom: 0;
|
84
|
+
z-index: 1;
|
85
|
+
}
|
86
|
+
#anime .box {
|
87
|
+
text-align: center;
|
88
|
+
margin: auto;
|
89
|
+
width: 100%;
|
90
|
+
position: absolute;
|
91
|
+
top: 35%;
|
92
|
+
left: 0;
|
93
|
+
right: 0;
|
94
|
+
bottom: 0;
|
95
|
+
z-index: 2;
|
96
|
+
}
|
97
|
+
#anime .logo {
|
98
|
+
text-align: center;
|
99
|
+
margin: 0 auto 30px;
|
100
|
+
width: 250px;
|
101
|
+
}
|
102
|
+
#anime .logo img {
|
103
|
+
width: 100%;
|
104
|
+
}
|
105
|
+
#anime .skip {
|
106
|
+
text-align: center;
|
107
|
+
margin: 0 auto;
|
108
|
+
padding: 15px 0 0;
|
109
|
+
width: 100px;
|
110
|
+
background: rgba(0,0,0,0);
|
111
|
+
color: #FFF;
|
112
|
+
font-size: 2.6rem;
|
113
|
+
font-family: 'font_bn';
|
114
|
+
letter-spacing: 0.1em;
|
115
|
+
outline: 0;
|
116
|
+
border: none;
|
117
|
+
border-top: 1px solid #fff;
|
118
|
+
transition: all 0.5s;
|
119
|
+
display: block;
|
120
|
+
}
|
121
|
+
#anime .skip:hover {
|
122
|
+
color: #AA0039;
|
123
|
+
}
|
124
|
+
```
|