@arcblock/terminal 3.1.19 → 3.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Player.js +110 -109
- package/lib/styles.js +4 -4
- package/package.json +4 -4
- package/src/Player.jsx +27 -0
- package/src/styles.js +4 -4
package/lib/Player.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { PlayerRoot as
|
|
8
|
-
import { defaultOptions as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
const e = Object.assign({},
|
|
1
|
+
import { jsxs as F, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as k, useReducer as I, useCallback as f, useEffect as A } from "react";
|
|
3
|
+
import o from "prop-types";
|
|
4
|
+
import P from "lodash/isUndefined";
|
|
5
|
+
import S from "lodash/noop";
|
|
6
|
+
import H from "./Terminal.js";
|
|
7
|
+
import { PlayerRoot as Y } from "./styles.js";
|
|
8
|
+
import { defaultOptions as _, formatFrames as U, defaultState as X, findFrameAt as j, getPlayerClass as $, getFrameClass as G, formatTime as K } from "./util.js";
|
|
9
|
+
const ie = 8;
|
|
10
|
+
function Q({ ...E }) {
|
|
11
|
+
const s = Object.assign({}, E);
|
|
12
|
+
P(s.onComplete) && (s.onComplete = S), P(s.onStart) && (s.onStart = S), P(s.onStop) && (s.onStop = S), P(s.onPause) && (s.onPause = S), P(s.onTick) && (s.onTick = S), P(s.onJump) && (s.onJump = S);
|
|
13
|
+
const e = Object.assign({}, _, s.options), { frames: c, totalDuration: g } = U(s.frames, e), D = {
|
|
14
14
|
cols: e.cols,
|
|
15
15
|
rows: e.rows,
|
|
16
16
|
cursorStyle: e.cursorStyle,
|
|
@@ -22,106 +22,106 @@ function K({ ...E }) {
|
|
|
22
22
|
allowTransparency: !0,
|
|
23
23
|
scrollback: 0,
|
|
24
24
|
theme: e.enableTheme ? e.theme : {}
|
|
25
|
-
},
|
|
26
|
-
switch (
|
|
25
|
+
}, z = (r, n) => {
|
|
26
|
+
switch (n.type) {
|
|
27
27
|
case "jump":
|
|
28
|
-
return { ...r, ...
|
|
28
|
+
return { ...r, ...n.payload };
|
|
29
29
|
case "start":
|
|
30
30
|
return { ...r, isStarted: !0, lastTickTime: Date.now() };
|
|
31
31
|
case "play":
|
|
32
|
-
return { ...r, isPlaying: !0, lastTickTime: Date.now(), ...
|
|
32
|
+
return { ...r, isPlaying: !0, lastTickTime: Date.now(), ...n.payload };
|
|
33
33
|
case "pause":
|
|
34
|
-
return { ...r, isPlaying: !1, ...
|
|
34
|
+
return { ...r, isPlaying: !1, ...n.payload };
|
|
35
35
|
case "tickStart":
|
|
36
|
-
return { ...r, isRendering: !0, lastTickTime: Date.now(), ...
|
|
36
|
+
return { ...r, isRendering: !0, lastTickTime: Date.now(), ...n.payload };
|
|
37
37
|
case "tickEnd":
|
|
38
|
-
return { ...r, isRendering: !1, lastTickTime: Date.now(), ...
|
|
38
|
+
return { ...r, isRendering: !1, lastTickTime: Date.now(), ...n.payload };
|
|
39
39
|
case "reset":
|
|
40
|
-
return { ...r, currentFrame: -1, currentTime: 0, ...
|
|
40
|
+
return { ...r, currentFrame: -1, currentTime: 0, ...n.payload };
|
|
41
41
|
default:
|
|
42
|
-
return { ...r, lastTickTime: Date.now(), ...
|
|
42
|
+
return { ...r, lastTickTime: Date.now(), ...n.payload };
|
|
43
43
|
}
|
|
44
|
-
},
|
|
45
|
-
(r) => new Promise((
|
|
46
|
-
const l =
|
|
47
|
-
l && l.content &&
|
|
48
|
-
|
|
49
|
-
})) :
|
|
44
|
+
}, i = k(null), x = k(null), J = k(null), d = k(null), p = k(null), [t, u] = I(z, X), C = f(
|
|
45
|
+
(r) => new Promise((n) => {
|
|
46
|
+
const l = c[r];
|
|
47
|
+
l && l.content && i.current ? (t.requireReset && i.current.reset(), i.current.write(l.content, () => {
|
|
48
|
+
n();
|
|
49
|
+
})) : n();
|
|
50
50
|
}),
|
|
51
|
-
[
|
|
52
|
-
), q =
|
|
51
|
+
[c, t.requireReset]
|
|
52
|
+
), q = f(
|
|
53
53
|
(r) => {
|
|
54
|
-
const
|
|
55
|
-
|
|
54
|
+
const n = c[r];
|
|
55
|
+
n && n.content && i.current && (t.requireReset && i.current.reset(), i.current.write(n.content));
|
|
56
56
|
},
|
|
57
|
-
[
|
|
58
|
-
), m =
|
|
57
|
+
[c, t.requireReset]
|
|
58
|
+
), m = f(
|
|
59
59
|
(r) => {
|
|
60
|
-
typeof
|
|
60
|
+
typeof s[r] == "function" && s[r]({ state: t, frames: c, options: e });
|
|
61
61
|
},
|
|
62
|
-
[
|
|
63
|
-
),
|
|
62
|
+
[s, t, c, e]
|
|
63
|
+
), N = f(
|
|
64
64
|
(r) => {
|
|
65
|
-
if (!
|
|
66
|
-
|
|
67
|
-
const
|
|
68
|
-
if (
|
|
69
|
-
for (let l = 0; l <=
|
|
65
|
+
if (!i.current) return;
|
|
66
|
+
i.current.reset();
|
|
67
|
+
const n = j(c, r);
|
|
68
|
+
if (n >= 0)
|
|
69
|
+
for (let l = 0; l <= n; l++)
|
|
70
70
|
q(l);
|
|
71
71
|
},
|
|
72
|
-
[
|
|
73
|
-
), L =
|
|
72
|
+
[c, q]
|
|
73
|
+
), L = f(
|
|
74
74
|
(r) => {
|
|
75
|
-
if (!
|
|
75
|
+
if (!x.current || !i.current || !t.isStarted)
|
|
76
76
|
return !1;
|
|
77
|
-
const
|
|
77
|
+
const n = x.current.getBoundingClientRect().width, l = r.nativeEvent.offsetX, h = Math.floor(g * l / n), T = j(c, h), w = t.isPlaying;
|
|
78
78
|
return u({
|
|
79
79
|
type: "jump",
|
|
80
80
|
payload: {
|
|
81
81
|
currentTime: h,
|
|
82
82
|
currentFrame: T,
|
|
83
|
-
isPlaying:
|
|
83
|
+
isPlaying: w
|
|
84
84
|
// Keep the same playing state
|
|
85
85
|
}
|
|
86
|
-
}), p.current = null,
|
|
86
|
+
}), p.current = null, N(h), m("onJump"), !1;
|
|
87
87
|
},
|
|
88
|
-
[
|
|
89
|
-
),
|
|
88
|
+
[t.isStarted, t.isPlaying, g, c, N, m]
|
|
89
|
+
), M = f(() => (t.currentFrame >= c.length - 1 ? (i.current.resize(), u({ type: "reset", payload: { currentFrame: -1, currentTime: 0 } }), i.current && i.current.reset(), p.current = null, u({ type: "play", payload: { currentFrame: -1, currentTime: 0 } })) : (p.current = null, u({ type: "play" })), m("onPlay"), !1), [t.currentFrame, c.length, m]), b = f(() => (t.isStarted === !1 && (i.current.resize(), u({ type: "start" }), i.current && i.current.reset()), p.current = null, u({ type: "play", payload: { currentFrame: -1, currentTime: 0 } }), m("onStart"), !1), [t.isStarted, m]), O = f(() => (u({ type: "pause" }), m("onPause"), !1), [m]);
|
|
90
90
|
A(() => {
|
|
91
|
-
|
|
91
|
+
i.current && (i.current.focus(), e.autoplay ? b() : N(Math.min(Math.abs(e.thumbnailTime), g)));
|
|
92
92
|
}, []);
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
const
|
|
96
|
-
const r =
|
|
93
|
+
const v = k(t);
|
|
94
|
+
v.current = t;
|
|
95
|
+
const R = f(async () => {
|
|
96
|
+
const r = v.current;
|
|
97
97
|
if (!r.isPlaying || r.isRendering)
|
|
98
98
|
return;
|
|
99
|
-
const
|
|
99
|
+
const n = performance.now();
|
|
100
100
|
if (!p.current) {
|
|
101
|
-
const
|
|
102
|
-
p.current =
|
|
101
|
+
const y = r.currentFrame >= 0 && c[r.currentFrame]?.startTime || 0;
|
|
102
|
+
p.current = n - y;
|
|
103
103
|
}
|
|
104
|
-
const l =
|
|
105
|
-
if (h >=
|
|
104
|
+
const l = n - p.current, { currentFrame: h } = r, T = h + 1;
|
|
105
|
+
if (h >= c.length - 1) {
|
|
106
106
|
if (m("onComplete"), e.repeat) {
|
|
107
|
-
p.current =
|
|
107
|
+
p.current = n, u({ type: "reset", payload: { currentTime: 0, currentFrame: -1 } });
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
|
-
const
|
|
110
|
+
const y = {
|
|
111
111
|
currentTime: g,
|
|
112
|
-
currentFrame:
|
|
112
|
+
currentFrame: c.length - 1,
|
|
113
113
|
requireReset: !0,
|
|
114
114
|
isStarted: !1
|
|
115
115
|
};
|
|
116
|
-
u({ type: "pause", payload:
|
|
116
|
+
u({ type: "pause", payload: y }), p.current = null;
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
|
-
const
|
|
120
|
-
if (!
|
|
121
|
-
|
|
119
|
+
const w = c[T];
|
|
120
|
+
if (!w) {
|
|
121
|
+
t.isPlaying && (d.current = requestAnimationFrame(R));
|
|
122
122
|
return;
|
|
123
123
|
}
|
|
124
|
-
const B =
|
|
124
|
+
const B = w.startTime || 0;
|
|
125
125
|
if (l >= B) {
|
|
126
126
|
u({
|
|
127
127
|
type: "tickStart",
|
|
@@ -132,75 +132,76 @@ function K({ ...E }) {
|
|
|
132
132
|
});
|
|
133
133
|
try {
|
|
134
134
|
await C(T);
|
|
135
|
-
const
|
|
135
|
+
const y = {
|
|
136
136
|
currentTime: B,
|
|
137
137
|
currentFrame: T
|
|
138
138
|
};
|
|
139
|
-
r.requireReset && (
|
|
140
|
-
} catch (
|
|
141
|
-
console.error("Frame rendering error:",
|
|
139
|
+
r.requireReset && (y.requireReset = !1), u({ type: "tickEnd", payload: y }), m("onTick");
|
|
140
|
+
} catch (y) {
|
|
141
|
+
console.error("Frame rendering error:", y);
|
|
142
142
|
}
|
|
143
143
|
} else
|
|
144
144
|
u({ type: "tick", payload: { currentTime: l } });
|
|
145
|
-
}, [
|
|
145
|
+
}, [c, C, m, e.repeat, g]);
|
|
146
146
|
return A(() => {
|
|
147
147
|
let r = !0;
|
|
148
|
-
const
|
|
149
|
-
for (; r &&
|
|
148
|
+
const n = async () => {
|
|
149
|
+
for (; r && v.current.isPlaying; )
|
|
150
150
|
await new Promise((l) => {
|
|
151
|
-
|
|
152
|
-
}), r &&
|
|
151
|
+
d.current = requestAnimationFrame(l);
|
|
152
|
+
}), r && v.current.isPlaying && await R();
|
|
153
153
|
};
|
|
154
|
-
return
|
|
155
|
-
r = !1,
|
|
154
|
+
return t.isPlaying ? n() : (d.current && (cancelAnimationFrame(d.current), d.current = null), p.current = null), () => {
|
|
155
|
+
r = !1, d.current && (cancelAnimationFrame(d.current), d.current = null);
|
|
156
156
|
};
|
|
157
|
-
}, [
|
|
158
|
-
/* @__PURE__ */ a("div", { className: "cover", onClick:
|
|
159
|
-
/* @__PURE__ */ a("div", { className: "start", onClick:
|
|
157
|
+
}, [t.isPlaying, R]), e.controls && (e.frameBox.title = null, e.frameBox.type = null, e.frameBox.style = {}, e.theme?.background === "transparent" ? e.frameBox.style.background = "black" : e.theme?.background && (e.frameBox.style.background = e.theme.background), e.frameBox.style.padding = "10px", e.frameBox.style.paddingBottom = "40px"), /* @__PURE__ */ F(Y, { className: $(e, t), ref: J, children: [
|
|
158
|
+
/* @__PURE__ */ a("div", { className: "cover", onClick: b }),
|
|
159
|
+
/* @__PURE__ */ a("div", { className: "start", onClick: b, children: /* @__PURE__ */ F("svg", { style: { enableBackground: "new 0 0 30 30" }, viewBox: "0 0 30 30", children: [
|
|
160
160
|
/* @__PURE__ */ a("polygon", { points: "6.583,3.186 5,4.004 5,15 26,15 26.483,14.128 " }),
|
|
161
161
|
/* @__PURE__ */ a("polygon", { points: "6.583,26.814 5,25.996 5,15 26,15 26.483,15.872 " }),
|
|
162
162
|
/* @__PURE__ */ a("circle", { cx: "26", cy: "15", r: "1" }),
|
|
163
163
|
/* @__PURE__ */ a("circle", { cx: "6", cy: "4", r: "1" }),
|
|
164
164
|
/* @__PURE__ */ a("circle", { cx: "6", cy: "26", r: "1" })
|
|
165
165
|
] }) }),
|
|
166
|
-
/* @__PURE__ */ a("div", { className: "terminal", children: /* @__PURE__ */
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
166
|
+
/* @__PURE__ */ a("div", { className: "terminal", children: /* @__PURE__ */ F("div", { className: G(e), style: e.frameBox.style || {}, children: [
|
|
167
|
+
/* @__PURE__ */ F("div", { className: "terminal-titlebar", children: [
|
|
168
|
+
/* @__PURE__ */ F("div", { className: "buttons", children: [
|
|
169
169
|
/* @__PURE__ */ a("div", { className: "close-button" }),
|
|
170
170
|
/* @__PURE__ */ a("div", { className: "minimize-button" }),
|
|
171
171
|
/* @__PURE__ */ a("div", { className: "maximize-button" })
|
|
172
172
|
] }),
|
|
173
173
|
/* @__PURE__ */ a("div", { className: "title", children: e.frameBox.title || "" })
|
|
174
174
|
] }),
|
|
175
|
-
/* @__PURE__ */ a("div", { className: "terminal-body", children: /* @__PURE__ */ a(
|
|
175
|
+
/* @__PURE__ */ a("div", { className: "terminal-body", children: /* @__PURE__ */ a(H, { ref: i, options: D }) })
|
|
176
176
|
] }) }),
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
/* @__PURE__ */ a("div", { className: "
|
|
181
|
-
/* @__PURE__ */ a("div", { className: "
|
|
177
|
+
/* @__PURE__ */ F("div", { className: "controller", children: [
|
|
178
|
+
!t.isPlaying && t.isStarted && /* @__PURE__ */ a("div", { className: "play", onClick: M, title: "Play", children: /* @__PURE__ */ a("span", { className: "icon" }) }),
|
|
179
|
+
t.isPlaying && /* @__PURE__ */ a("div", { className: "pause", onClick: O, title: "Pause", children: /* @__PURE__ */ a("span", { className: "icon" }) }),
|
|
180
|
+
!t.isPlaying && !t.isStarted && /* @__PURE__ */ a("div", { className: "play", onClick: b, title: "Start", children: /* @__PURE__ */ a("span", { className: "icon" }) }),
|
|
181
|
+
/* @__PURE__ */ a("div", { className: "timer", children: K(t.currentTime) }),
|
|
182
|
+
/* @__PURE__ */ a("div", { className: "progressbar-wrapper", children: /* @__PURE__ */ a("div", { className: "progressbar", ref: x, onClick: L, children: /* @__PURE__ */ a("div", { className: "progress", style: { width: `${t.currentTime / g * 100}%` } }) }) })
|
|
182
183
|
] })
|
|
183
184
|
] });
|
|
184
185
|
}
|
|
185
|
-
|
|
186
|
-
frames:
|
|
187
|
-
options:
|
|
188
|
-
autoplay:
|
|
189
|
-
repeat:
|
|
190
|
-
controls:
|
|
191
|
-
frameBox:
|
|
192
|
-
theme:
|
|
193
|
-
cols:
|
|
194
|
-
rows:
|
|
186
|
+
Q.propTypes = {
|
|
187
|
+
frames: o.array.isRequired,
|
|
188
|
+
options: o.shape({
|
|
189
|
+
autoplay: o.bool,
|
|
190
|
+
repeat: o.bool,
|
|
191
|
+
controls: o.bool,
|
|
192
|
+
frameBox: o.object,
|
|
193
|
+
theme: o.object,
|
|
194
|
+
cols: o.number,
|
|
195
|
+
rows: o.number
|
|
195
196
|
}).isRequired,
|
|
196
|
-
onComplete:
|
|
197
|
-
onStart:
|
|
198
|
-
onStop:
|
|
199
|
-
onPause:
|
|
200
|
-
onTick:
|
|
201
|
-
onJump:
|
|
197
|
+
onComplete: o.func,
|
|
198
|
+
onStart: o.func,
|
|
199
|
+
onStop: o.func,
|
|
200
|
+
onPause: o.func,
|
|
201
|
+
onTick: o.func,
|
|
202
|
+
onJump: o.func
|
|
202
203
|
};
|
|
203
204
|
export {
|
|
204
|
-
|
|
205
|
-
|
|
205
|
+
ie as PLAYER_FRAME_DELAY,
|
|
206
|
+
Q as default
|
|
206
207
|
};
|
package/lib/styles.js
CHANGED
|
@@ -69,8 +69,8 @@ const r = e.div({
|
|
|
69
69
|
"& .start svg": {
|
|
70
70
|
cursor: "pointer",
|
|
71
71
|
fill: "#eaeaea",
|
|
72
|
-
width:
|
|
73
|
-
height:
|
|
72
|
+
width: 80,
|
|
73
|
+
height: 80,
|
|
74
74
|
left: "50%",
|
|
75
75
|
marginLeft: -65,
|
|
76
76
|
marginTop: -65,
|
|
@@ -79,9 +79,9 @@ const r = e.div({
|
|
|
79
79
|
zIndex: 20,
|
|
80
80
|
filter: "drop-shadow(10px 10px 15px rgba(0, 0, 0, 0.4))",
|
|
81
81
|
WebkitFilter: "drop-shadow(10px 10px 15px rgba(0, 0, 0, 0.4))",
|
|
82
|
-
opacity: 0.
|
|
82
|
+
opacity: 0.7,
|
|
83
83
|
"&:hover": {
|
|
84
|
-
opacity: 0.
|
|
84
|
+
opacity: 0.9,
|
|
85
85
|
transition: "all 0.3s ease"
|
|
86
86
|
}
|
|
87
87
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/terminal",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.21",
|
|
4
4
|
"description": "A react wrapper for xterm allowing you to easily render a terminal in the browser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": "^19.0.0"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "dedb6d83f569480ca7840679ef32fb863d4042e1",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@arcblock/react-hooks": "3.1.
|
|
46
|
-
"@arcblock/ux": "3.1.
|
|
45
|
+
"@arcblock/react-hooks": "3.1.21",
|
|
46
|
+
"@arcblock/ux": "3.1.21",
|
|
47
47
|
"@emotion/react": "^11.14.0",
|
|
48
48
|
"@emotion/styled": "^11.14.0",
|
|
49
49
|
"@xterm/addon-fit": "^0.10.0",
|
package/src/Player.jsx
CHANGED
|
@@ -187,6 +187,28 @@ export default function Player({ ...rawProps }) {
|
|
|
187
187
|
[state.isStarted, state.isPlaying, totalDuration, frames, doJump, emitEvent]
|
|
188
188
|
);
|
|
189
189
|
|
|
190
|
+
const onPlay = useCallback(() => {
|
|
191
|
+
if (state.currentFrame >= frames.length - 1) {
|
|
192
|
+
// 触发一下 resize,保证文字输出正常
|
|
193
|
+
terminal.current.resize();
|
|
194
|
+
// Reset to beginning if at the end
|
|
195
|
+
dispatch({ type: 'reset', payload: { currentFrame: -1, currentTime: 0 } });
|
|
196
|
+
if (terminal.current) {
|
|
197
|
+
terminal.current.reset();
|
|
198
|
+
}
|
|
199
|
+
startTimeRef.current = null;
|
|
200
|
+
// Start from beginning
|
|
201
|
+
dispatch({ type: 'play', payload: { currentFrame: -1, currentTime: 0 } });
|
|
202
|
+
} else {
|
|
203
|
+
// Continue from current position
|
|
204
|
+
startTimeRef.current = null; // Reset timing for accurate playback
|
|
205
|
+
dispatch({ type: 'play' });
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
emitEvent('onPlay');
|
|
209
|
+
return false;
|
|
210
|
+
}, [state.currentFrame, frames.length, emitEvent]);
|
|
211
|
+
|
|
190
212
|
const onStart = useCallback(() => {
|
|
191
213
|
if (state.isStarted === false) {
|
|
192
214
|
// 触发一下 resize,保证文字输出正常
|
|
@@ -405,6 +427,11 @@ export default function Player({ ...rawProps }) {
|
|
|
405
427
|
</div>
|
|
406
428
|
</div>
|
|
407
429
|
<div className="controller">
|
|
430
|
+
{!state.isPlaying && state.isStarted && (
|
|
431
|
+
<div className="play" onClick={onPlay} title="Play">
|
|
432
|
+
<span className="icon" />
|
|
433
|
+
</div>
|
|
434
|
+
)}
|
|
408
435
|
{state.isPlaying && (
|
|
409
436
|
<div className="pause" onClick={onPause} title="Pause">
|
|
410
437
|
<span className="icon" />
|
package/src/styles.js
CHANGED
|
@@ -87,8 +87,8 @@ export const PlayerRoot = styled.div({
|
|
|
87
87
|
'& .start svg': {
|
|
88
88
|
cursor: 'pointer',
|
|
89
89
|
fill: '#eaeaea',
|
|
90
|
-
width:
|
|
91
|
-
height:
|
|
90
|
+
width: 80,
|
|
91
|
+
height: 80,
|
|
92
92
|
left: '50%',
|
|
93
93
|
marginLeft: -65,
|
|
94
94
|
marginTop: -65,
|
|
@@ -98,9 +98,9 @@ export const PlayerRoot = styled.div({
|
|
|
98
98
|
zIndex: 20,
|
|
99
99
|
filter: 'drop-shadow(10px 10px 15px rgba(0, 0, 0, 0.4))',
|
|
100
100
|
WebkitFilter: 'drop-shadow(10px 10px 15px rgba(0, 0, 0, 0.4))',
|
|
101
|
-
opacity: 0.
|
|
101
|
+
opacity: 0.7,
|
|
102
102
|
'&:hover': {
|
|
103
|
-
opacity: 0.
|
|
103
|
+
opacity: 0.9,
|
|
104
104
|
transition: 'all 0.3s ease',
|
|
105
105
|
},
|
|
106
106
|
},
|