質問編集履歴
1
内容の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,23 +2,23 @@
|
|
2
2
|
|
3
3
|
```html
|
4
4
|
|
5
|
-
<div class="main_contents">
|
5
|
+
<div class="main_contents">
|
6
6
|
|
7
7
|
<div class="slide_wrapper">
|
8
8
|
|
9
|
-
<div class="slide_animation">
|
9
|
+
<div class="slide_animation slide_animation_1">
|
10
10
|
|
11
11
|
<img src="img/shop_img1.webp">
|
12
12
|
|
13
13
|
</div>
|
14
14
|
|
15
|
-
<div class="slide_animation">
|
15
|
+
<div class="slide_animation slide_animation_2">
|
16
16
|
|
17
17
|
<img src="img/shop_img2.webp">
|
18
18
|
|
19
19
|
</div>
|
20
20
|
|
21
|
-
<div class="slide_animation">
|
21
|
+
<div class="slide_animation slide_animation_3">
|
22
22
|
|
23
23
|
<img src="img/shop_img3.webp">
|
24
24
|
|
@@ -27,6 +27,12 @@
|
|
27
27
|
</div>
|
28
28
|
|
29
29
|
</div>
|
30
|
+
|
31
|
+
</body>
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
</html>
|
30
36
|
|
31
37
|
```
|
32
38
|
|
@@ -48,24 +54,58 @@
|
|
48
54
|
|
49
55
|
.slide_animation{
|
50
56
|
|
57
|
+
animation-name:slide;
|
51
58
|
|
59
|
+
animation-duration:2.4s;
|
60
|
+
|
61
|
+
animation-iteration-count:infinite;
|
62
|
+
|
63
|
+
opacity:1;
|
64
|
+
|
65
|
+
position:absolute;
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
}
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
@keyframes slide {
|
74
|
+
|
75
|
+
0%{opacity:1}
|
76
|
+
|
77
|
+
33%{opacity:0}
|
78
|
+
|
79
|
+
}
|
80
|
+
|
81
|
+
.slide_animation_1{
|
82
|
+
|
83
|
+
animation: delay 0s;
|
52
84
|
|
53
85
|
|
54
86
|
|
55
87
|
}
|
56
88
|
|
57
|
-
|
89
|
+
.slide_animation_2{
|
58
90
|
|
59
|
-
|
91
|
+
animation: delay 1s;
|
60
92
|
|
61
|
-
|
93
|
+
|
62
94
|
|
63
95
|
}
|
64
96
|
|
97
|
+
.slide_animation_3{
|
65
98
|
|
99
|
+
animation: delay 2s;
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
}
|
66
104
|
|
67
105
|
```
|
68
106
|
|
69
107
|
上記のコードはアニメーションを適用させる箇所を抜粋したコードになります。
|
70
108
|
|
71
|
-
|
109
|
+
各画像のアニメーションのスタート時間を0.8秒ずつ遅らせ「@keyframes」も3分の一経過したら、画像が透明になるように指定してみたのですが、画像が切り替わることすら起こりませんでした。
|
110
|
+
|
111
|
+
どのようにしたら、アニメーションを発生させることができるのでしょうか?
|