@fonixtree/magic-design 1.0.155 → 1.0.157
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/es/common/ProductCardModal/index.js +4 -4
- package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +0 -1
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/d.png +0 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +5 -3
- package/lib/common/ProductCardModal/index.js +4 -4
- package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +0 -1
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/d.png +0 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +5 -3
- package/package.json +1 -1
|
@@ -62,7 +62,7 @@ function ProductCardModal(_a) {
|
|
|
62
62
|
return index === active;
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
var randomRotateY = function randomRotateY() {
|
|
65
|
+
var randomRotateY = function randomRotateY(index) {
|
|
66
66
|
// return Math.floor(Math.random() * 21) - 10;
|
|
67
67
|
return Math.floor((index % 2 === 0 ? -index : index) * 0.1 * 21) - 10;
|
|
68
68
|
};
|
|
@@ -128,7 +128,7 @@ function ProductCardModal(_a) {
|
|
|
128
128
|
opacity: isActive(index) ? 1 : 0.7,
|
|
129
129
|
scale: isActive(index) ? 1 : 0.95,
|
|
130
130
|
z: isActive(index) ? 0 : -100,
|
|
131
|
-
rotate: isActive(index) ? 0 : randomRotateY(),
|
|
131
|
+
rotate: isActive(index) ? 0 : randomRotateY(index),
|
|
132
132
|
zIndex: isActive(index) ? 999 : data.length + 2 - index,
|
|
133
133
|
y: isActive(index) ? [0, -80, 0] : 0
|
|
134
134
|
},
|
|
@@ -137,13 +137,13 @@ function ProductCardModal(_a) {
|
|
|
137
137
|
opacity: 0,
|
|
138
138
|
scale: 0.9,
|
|
139
139
|
z: 100,
|
|
140
|
-
rotate: randomRotateY()
|
|
140
|
+
rotate: randomRotateY(index)
|
|
141
141
|
},
|
|
142
142
|
initial: {
|
|
143
143
|
opacity: 0,
|
|
144
144
|
scale: 0.9,
|
|
145
145
|
z: -100,
|
|
146
|
-
rotate: randomRotateY()
|
|
146
|
+
rotate: randomRotateY(index)
|
|
147
147
|
},
|
|
148
148
|
transition: {
|
|
149
149
|
duration: 0.4,
|
|
@@ -63,7 +63,6 @@ function ParallaxScroll(_a) {
|
|
|
63
63
|
var initLayout = function initLayout() {
|
|
64
64
|
var _a, _b, _c;
|
|
65
65
|
|
|
66
|
-
console.log('init...');
|
|
67
66
|
var colOneHeight = (_a = colOneRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight;
|
|
68
67
|
var colTwoHeight = (_b = colTwoRef.current) === null || _b === void 0 ? void 0 : _b.offsetHeight;
|
|
69
68
|
var colThreeHeight = (_c = colThreeRef.current) === null || _c === void 0 ? void 0 : _c.offsetHeight;
|
|
Binary file
|
|
@@ -18,9 +18,11 @@
|
|
|
18
18
|
display: block;
|
|
19
19
|
width: 180%;
|
|
20
20
|
height: 764px;
|
|
21
|
-
// height: 180%;
|
|
22
21
|
position: absolute;
|
|
23
|
-
transform:
|
|
22
|
+
transform: translate(-50%, -50%) rotate(-45deg) scale(0);
|
|
23
|
+
top: 50%;
|
|
24
|
+
left: 50%;
|
|
25
|
+
transform-origin: center;
|
|
24
26
|
opacity: 0;
|
|
25
27
|
z-index: -2;
|
|
26
28
|
background-image: url('./imgs/d.png');
|
|
@@ -32,7 +34,7 @@
|
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
&:hover:before {
|
|
35
|
-
transform:
|
|
37
|
+
transform: translate(-50%, -50%) rotate(0deg) scale(1);
|
|
36
38
|
opacity: 1;
|
|
37
39
|
}
|
|
38
40
|
|
|
@@ -62,7 +62,7 @@ function ProductCardModal(_a) {
|
|
|
62
62
|
return index === active;
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
var randomRotateY = function randomRotateY() {
|
|
65
|
+
var randomRotateY = function randomRotateY(index) {
|
|
66
66
|
// return Math.floor(Math.random() * 21) - 10;
|
|
67
67
|
return Math.floor((index % 2 === 0 ? -index : index) * 0.1 * 21) - 10;
|
|
68
68
|
};
|
|
@@ -128,7 +128,7 @@ function ProductCardModal(_a) {
|
|
|
128
128
|
opacity: isActive(index) ? 1 : 0.7,
|
|
129
129
|
scale: isActive(index) ? 1 : 0.95,
|
|
130
130
|
z: isActive(index) ? 0 : -100,
|
|
131
|
-
rotate: isActive(index) ? 0 : randomRotateY(),
|
|
131
|
+
rotate: isActive(index) ? 0 : randomRotateY(index),
|
|
132
132
|
zIndex: isActive(index) ? 999 : data.length + 2 - index,
|
|
133
133
|
y: isActive(index) ? [0, -80, 0] : 0
|
|
134
134
|
},
|
|
@@ -137,13 +137,13 @@ function ProductCardModal(_a) {
|
|
|
137
137
|
opacity: 0,
|
|
138
138
|
scale: 0.9,
|
|
139
139
|
z: 100,
|
|
140
|
-
rotate: randomRotateY()
|
|
140
|
+
rotate: randomRotateY(index)
|
|
141
141
|
},
|
|
142
142
|
initial: {
|
|
143
143
|
opacity: 0,
|
|
144
144
|
scale: 0.9,
|
|
145
145
|
z: -100,
|
|
146
|
-
rotate: randomRotateY()
|
|
146
|
+
rotate: randomRotateY(index)
|
|
147
147
|
},
|
|
148
148
|
transition: {
|
|
149
149
|
duration: 0.4,
|
|
@@ -63,7 +63,6 @@ function ParallaxScroll(_a) {
|
|
|
63
63
|
var initLayout = function initLayout() {
|
|
64
64
|
var _a, _b, _c;
|
|
65
65
|
|
|
66
|
-
console.log('init...');
|
|
67
66
|
var colOneHeight = (_a = colOneRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight;
|
|
68
67
|
var colTwoHeight = (_b = colTwoRef.current) === null || _b === void 0 ? void 0 : _b.offsetHeight;
|
|
69
68
|
var colThreeHeight = (_c = colThreeRef.current) === null || _c === void 0 ? void 0 : _c.offsetHeight;
|
|
Binary file
|
|
@@ -18,9 +18,11 @@
|
|
|
18
18
|
display: block;
|
|
19
19
|
width: 180%;
|
|
20
20
|
height: 764px;
|
|
21
|
-
// height: 180%;
|
|
22
21
|
position: absolute;
|
|
23
|
-
transform:
|
|
22
|
+
transform: translate(-50%, -50%) rotate(-45deg) scale(0);
|
|
23
|
+
top: 50%;
|
|
24
|
+
left: 50%;
|
|
25
|
+
transform-origin: center;
|
|
24
26
|
opacity: 0;
|
|
25
27
|
z-index: -2;
|
|
26
28
|
background-image: url('./imgs/d.png');
|
|
@@ -32,7 +34,7 @@
|
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
&:hover:before {
|
|
35
|
-
transform:
|
|
37
|
+
transform: translate(-50%, -50%) rotate(0deg) scale(1);
|
|
36
38
|
opacity: 1;
|
|
37
39
|
}
|
|
38
40
|
|