回答編集履歴

2

追記

2018/11/14 06:20

投稿

macaron_xxx
macaron_xxx

スコア3191

test CHANGED
@@ -75,3 +75,41 @@
75
75
  }
76
76
 
77
77
  ```
78
+
79
+
80
+
81
+ こうすると、見かけ上、1番最初だけ画像が消えるのが早い**気がする**と思うので、その場合は
82
+
83
+ `.slide_animation_1`から`.slide_animation_3`まで`animation-delay`を同じ秒数ずつ伸ばしてやればよいです。
84
+
85
+
86
+
87
+ 例)
88
+
89
+ ```CSS
90
+
91
+ .slide_animation_1{
92
+
93
+ z-index: 3;
94
+
95
+ animation-delay:1.3s;
96
+
97
+ }
98
+
99
+ .slide_animation_2{
100
+
101
+ z-index: 2;
102
+
103
+ animation-delay:3.9s;
104
+
105
+ }
106
+
107
+ .slide_animation_3{
108
+
109
+ z-index:1;
110
+
111
+ animation-delay:6.5s;
112
+
113
+ }
114
+
115
+ ```

1

追記

2018/11/14 06:20

投稿

macaron_xxx
macaron_xxx

スコア3191

test CHANGED
@@ -15,3 +15,63 @@
15
15
 
16
16
 
17
17
  解決策としては、`animation-duration`を`7.8s`で`.slide_animation_3`を'5.2s'にする感じですかね。
18
+
19
+
20
+
21
+ ## 追記
22
+
23
+ ```CSS
24
+
25
+ .slide_animation{
26
+
27
+ animation-name:slide;
28
+
29
+ animation-duration:7.8s; /* 2.6s × 3枚 */
30
+
31
+ animation-iteration-count:infinite;
32
+
33
+ opacity:1;
34
+
35
+ position:absolute;
36
+
37
+ }
38
+
39
+
40
+
41
+ @keyframes slide {
42
+
43
+ 0%{opacity:1}
44
+
45
+ 33.33333%{opacity:0}
46
+
47
+ 66.66666%{opacity:0;}
48
+
49
+ 100%{opacity:1;}
50
+
51
+ }
52
+
53
+ .slide_animation_1{
54
+
55
+ z-index: 3;
56
+
57
+ animation-delay:0s;
58
+
59
+ }
60
+
61
+ .slide_animation_2{
62
+
63
+ z-index: 2;
64
+
65
+ animation-delay:2.6s;
66
+
67
+ }
68
+
69
+ .slide_animation_3{
70
+
71
+ z-index:1;
72
+
73
+ animation-delay:5.2s;
74
+
75
+ }
76
+
77
+ ```