回答編集履歴
1
別案追記
test
CHANGED
@@ -13,3 +13,25 @@
|
|
13
13
|
opacity: 0;
|
14
14
|
}
|
15
15
|
```
|
16
|
+
|
17
|
+
別案
|
18
|
+
---
|
19
|
+
|
20
|
+
今なら、gridで重ねて配置してもいいですね。
|
21
|
+
|
22
|
+
```css
|
23
|
+
.IMAGE {
|
24
|
+
height: 100vh;
|
25
|
+
display: grid; /* 追加 */
|
26
|
+
}
|
27
|
+
|
28
|
+
.img1,
|
29
|
+
.img2 {
|
30
|
+
grid-area: 1 / 1 / 2 / 2; /* 追加 */
|
31
|
+
background-size: contain;
|
32
|
+
background-position: center center;
|
33
|
+
background-repeat: no-repeat;
|
34
|
+
animation: anime 4s infinite;
|
35
|
+
opacity: 0;
|
36
|
+
}
|
37
|
+
```
|