質問編集履歴
1
ソースコードを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -29,3 +29,193 @@
|
|
29
29
|
|
30
30
|
|
31
31
|
申し訳ないのですが、ご教授よろしくお願いします。
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
ソース追記します。opacity:1で現時点でまず文字が表示されないため、フェードアウトまで実装できておりません…。
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
```HTML
|
42
|
+
|
43
|
+
<div class="p-home-mainvisual__text-area">
|
44
|
+
|
45
|
+
<div>
|
46
|
+
|
47
|
+
<span class="f-bg">abcde</span>
|
48
|
+
|
49
|
+
<ul class="f-text">
|
50
|
+
|
51
|
+
<li>a</li>
|
52
|
+
|
53
|
+
<li>b</li>
|
54
|
+
|
55
|
+
<li>c</li>
|
56
|
+
|
57
|
+
<li>d</li>
|
58
|
+
|
59
|
+
<li>e</li>
|
60
|
+
|
61
|
+
</ul>
|
62
|
+
|
63
|
+
</div>
|
64
|
+
|
65
|
+
</div>
|
66
|
+
|
67
|
+
```
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
```css
|
72
|
+
|
73
|
+
.p-home-mainvisual__text-area{
|
74
|
+
|
75
|
+
position: relative;
|
76
|
+
|
77
|
+
width: 100%!important;
|
78
|
+
|
79
|
+
text-align: center;
|
80
|
+
|
81
|
+
color: #FFF;
|
82
|
+
|
83
|
+
}
|
84
|
+
|
85
|
+
.f-bg{
|
86
|
+
|
87
|
+
content: "";
|
88
|
+
|
89
|
+
position: absolute;
|
90
|
+
|
91
|
+
top: 200px;
|
92
|
+
|
93
|
+
left: 50%;
|
94
|
+
|
95
|
+
font-size: 3.5em;
|
96
|
+
|
97
|
+
color: transparent;
|
98
|
+
|
99
|
+
width:50%;
|
100
|
+
|
101
|
+
-webkit-transform: translateX(-50%);
|
102
|
+
|
103
|
+
transform: translateX(-50%);
|
104
|
+
|
105
|
+
padding: 0 20px;
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
}
|
110
|
+
|
111
|
+
.f-bg::before{
|
112
|
+
|
113
|
+
display: block;
|
114
|
+
|
115
|
+
content: "";
|
116
|
+
|
117
|
+
height: 100%;
|
118
|
+
|
119
|
+
background: #AAA;
|
120
|
+
|
121
|
+
position: absolute;
|
122
|
+
|
123
|
+
top: 0;
|
124
|
+
|
125
|
+
opacity:0.7;
|
126
|
+
|
127
|
+
animation: wipe .7s ease-in-out both;
|
128
|
+
|
129
|
+
animation-delay: 1s;
|
130
|
+
|
131
|
+
}
|
132
|
+
|
133
|
+
@keyframes wipe {
|
134
|
+
|
135
|
+
0% {
|
136
|
+
|
137
|
+
left:0;
|
138
|
+
|
139
|
+
right: 100%;
|
140
|
+
|
141
|
+
}
|
142
|
+
|
143
|
+
100% {
|
144
|
+
|
145
|
+
left:0;
|
146
|
+
|
147
|
+
right:0;
|
148
|
+
|
149
|
+
}
|
150
|
+
|
151
|
+
}
|
152
|
+
|
153
|
+
.f-text{
|
154
|
+
|
155
|
+
margin-left:30%;
|
156
|
+
|
157
|
+
margin-top:16%;
|
158
|
+
|
159
|
+
}
|
160
|
+
|
161
|
+
.f-text li{
|
162
|
+
|
163
|
+
float: left;
|
164
|
+
|
165
|
+
animation: wipe-text;
|
166
|
+
|
167
|
+
opacity:0;
|
168
|
+
|
169
|
+
font-size:4em;
|
170
|
+
|
171
|
+
}
|
172
|
+
|
173
|
+
.f-text > li:nth-child(1){
|
174
|
+
|
175
|
+
animation-delay: 2s;
|
176
|
+
|
177
|
+
}
|
178
|
+
|
179
|
+
.f-text > li:nth-child(2){
|
180
|
+
|
181
|
+
animation-delay: 2.5s;
|
182
|
+
|
183
|
+
}
|
184
|
+
|
185
|
+
.f-text > li:nth-child(3){
|
186
|
+
|
187
|
+
animation-delay: 3s;
|
188
|
+
|
189
|
+
}
|
190
|
+
|
191
|
+
.f-text > li:nth-child(4){
|
192
|
+
|
193
|
+
animation-delay: 3.5s;
|
194
|
+
|
195
|
+
}
|
196
|
+
|
197
|
+
.f-text > li:nth-child(5){
|
198
|
+
|
199
|
+
animation-delay: 4.0s;
|
200
|
+
|
201
|
+
}
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
@keyframes wipe-text{
|
206
|
+
|
207
|
+
0% {
|
208
|
+
|
209
|
+
opacity:0;
|
210
|
+
|
211
|
+
}
|
212
|
+
|
213
|
+
100%{
|
214
|
+
|
215
|
+
opacity:1;
|
216
|
+
|
217
|
+
}
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
```
|