回答編集履歴
1
コード修正
test
CHANGED
@@ -42,4 +42,26 @@
|
|
42
42
|
|
43
43
|
}
|
44
44
|
|
45
|
+
.box3 {
|
46
|
+
|
47
|
+
& > div {
|
48
|
+
|
49
|
+
position: absolute;
|
50
|
+
|
51
|
+
top: 50%;
|
52
|
+
|
53
|
+
transform: translateY( -50% );
|
54
|
+
|
55
|
+
background-size: cover; /* 追加 */
|
56
|
+
|
57
|
+
width: 0%;
|
58
|
+
|
59
|
+
height: 100%;
|
60
|
+
|
61
|
+
transition: width 3s;
|
62
|
+
|
63
|
+
}
|
64
|
+
|
65
|
+
}
|
66
|
+
|
45
67
|
```
|