質問編集履歴
1
コードの編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,7 +42,13 @@
|
|
42
42
|
|
43
43
|
```CS
|
44
44
|
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
45
|
-
.img-
|
49
|
+
.img-animation {
|
50
|
+
|
51
|
+
animation: img-opacity 2s cubic-bezier(.4, 0, .2, 1);
|
46
52
|
|
47
53
|
overflow: hidden;
|
48
54
|
|
@@ -52,9 +58,11 @@
|
|
52
58
|
|
53
59
|
|
54
60
|
|
55
|
-
.img-wrap3:before {
|
56
61
|
|
62
|
+
|
63
|
+
.img-animation:before {
|
64
|
+
|
57
|
-
animation: img-
|
65
|
+
animation: img-animation 2s cubic-bezier(.4, 0, .2, 1) forwards;
|
58
66
|
|
59
67
|
background: #fff;
|
60
68
|
|
@@ -78,19 +86,23 @@
|
|
78
86
|
|
79
87
|
|
80
88
|
|
81
|
-
|
89
|
+
@keyframes img-opacity {
|
82
90
|
|
91
|
+
0% {
|
92
|
+
|
83
|
-
a
|
93
|
+
opacity: 0;
|
94
|
+
|
95
|
+
}
|
84
96
|
|
85
97
|
}
|
86
98
|
|
87
99
|
|
88
100
|
|
89
|
-
@keyframes img-
|
101
|
+
@keyframes img-animation {
|
90
102
|
|
91
103
|
100% {
|
92
104
|
|
93
|
-
transform: translateX(
|
105
|
+
transform: translateX(100%);
|
94
106
|
|
95
107
|
}
|
96
108
|
|
@@ -112,7 +124,7 @@
|
|
112
124
|
|
113
125
|
|
114
126
|
|
115
|
-
(function() {
|
127
|
+
$(window).on(function() {
|
116
128
|
|
117
129
|
const image = document.querySelectorAll('.img-wrap3');
|
118
130
|
|
@@ -144,6 +156,10 @@
|
|
144
156
|
|
145
157
|
});
|
146
158
|
|
159
|
+
})
|
160
|
+
|
161
|
+
|
162
|
+
|
147
163
|
```
|
148
164
|
|
149
165
|
|