質問編集履歴
3
animationの設定と<code>を追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -35,6 +35,10 @@
|
|
35
35
|
|
36
36
|
|
37
37
|
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
```
|
38
42
|
|
39
43
|
```css
|
40
44
|
|
@@ -190,4 +194,6 @@
|
|
190
194
|
|
191
195
|
}
|
192
196
|
|
197
|
+
|
198
|
+
|
193
199
|
```
|
2
codeのやり直し
test
CHANGED
File without changes
|
test
CHANGED
@@ -189,3 +189,5 @@
|
|
189
189
|
100% {opacity: 0;}
|
190
190
|
|
191
191
|
}
|
192
|
+
|
193
|
+
```
|
1
animationの設定と<code>を追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,6 +18,8 @@
|
|
18
18
|
|
19
19
|
|
20
20
|
|
21
|
+
```html
|
22
|
+
|
21
23
|
<header>
|
22
24
|
|
23
25
|
<h1 id="logo"><img></h1>
|
@@ -34,7 +36,7 @@
|
|
34
36
|
|
35
37
|
|
36
38
|
|
37
|
-
|
39
|
+
```css
|
38
40
|
|
39
41
|
header {
|
40
42
|
|
@@ -87,3 +89,103 @@
|
|
87
89
|
|
88
90
|
|
89
91
|
}
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
/*3枚画像の共通設定*/
|
96
|
+
|
97
|
+
.slide1,.slide2,.slide3 {
|
98
|
+
|
99
|
+
animation-duration: 30s; /*実行する時間。「s」は秒の事。*/
|
100
|
+
|
101
|
+
animation-iteration-count:infinite; /*実行する回数。「infinite」は無限に繰り返す意味。*/
|
102
|
+
|
103
|
+
position: absolute;left:0px;top:0px;width: 100%;height: 100%;
|
104
|
+
|
105
|
+
animation-fill-mode: both;
|
106
|
+
|
107
|
+
animation-timing-function: linear;
|
108
|
+
|
109
|
+
animation-delay: 3s;
|
110
|
+
|
111
|
+
}
|
112
|
+
|
113
|
+
/*1枚目*/
|
114
|
+
|
115
|
+
.slide1 {
|
116
|
+
|
117
|
+
animation-name: slide1; /*上で設定しているキーフレーム(keyframes)の名前*/
|
118
|
+
|
119
|
+
}
|
120
|
+
|
121
|
+
/*2枚目*/
|
122
|
+
|
123
|
+
.slide2 {
|
124
|
+
|
125
|
+
animation-name: slide2; /*上で設定しているキーフレーム(keyframes)の名前*/
|
126
|
+
|
127
|
+
}
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
.slide3 {
|
132
|
+
|
133
|
+
animation-name: slide3; /*上で設定しているキーフレーム(keyframes)の名前*/
|
134
|
+
|
135
|
+
}
|
136
|
+
|
137
|
+
/*1枚目*/
|
138
|
+
|
139
|
+
@keyframes slide1 {
|
140
|
+
|
141
|
+
0% {opacity: 0; transform: scale(1);}
|
142
|
+
|
143
|
+
10% {opacity: 1;}
|
144
|
+
|
145
|
+
40% {transform: scale(1.1);}
|
146
|
+
|
147
|
+
50% {opacity: 1;}
|
148
|
+
|
149
|
+
60% {opacity: 0;}
|
150
|
+
|
151
|
+
100% {opacity: 0;}
|
152
|
+
|
153
|
+
}
|
154
|
+
|
155
|
+
/*2枚目*/
|
156
|
+
|
157
|
+
@keyframes slide2 {
|
158
|
+
|
159
|
+
0% {opacity: 0;}
|
160
|
+
|
161
|
+
25% {opacity: 0; transform: scale(1);}
|
162
|
+
|
163
|
+
35% {opacity: 1;}
|
164
|
+
|
165
|
+
65% {transform: scale(1.1);}
|
166
|
+
|
167
|
+
75% {opacity: 1;}
|
168
|
+
|
169
|
+
85% {opacity: 0;}
|
170
|
+
|
171
|
+
100% {opacity: 0;}
|
172
|
+
|
173
|
+
}
|
174
|
+
|
175
|
+
/*3枚目*/
|
176
|
+
|
177
|
+
@keyframes slide3 {
|
178
|
+
|
179
|
+
0% {opacity: 0;}
|
180
|
+
|
181
|
+
50% {opacity: 0; transform: scale(1);}
|
182
|
+
|
183
|
+
60% {opacity: 1;}
|
184
|
+
|
185
|
+
80% {opacity: 1;}
|
186
|
+
|
187
|
+
90% {opacity: 0; transform: scale(1.1);}
|
188
|
+
|
189
|
+
100% {opacity: 0;}
|
190
|
+
|
191
|
+
}
|