@fonixtree/magic-design 1.0.154 → 1.0.156

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.
@@ -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;
@@ -1,6 +1,5 @@
1
1
  .slide-image-video-wrap {
2
2
  position: relative;
3
- transition: border-radius 0.2s ease;
4
3
  display: flex;
5
4
  border-radius: 16px;
6
5
  --dx: calc(var(--size) - var(--x));
@@ -14,26 +13,28 @@
14
13
  box-shadow: 0px 12px 48px 0px #00000029;
15
14
  }
16
15
 
17
- &:after {
16
+ &:before {
18
17
  content: '';
19
18
  display: block;
20
19
  width: 180%;
21
- height: 180%;
22
- min-height: 100vw / 2.5;
20
+ height: 764px;
23
21
  position: absolute;
24
- transform: translate(-20%, -20%) scale(0);
22
+ transform: translate(-50%, -50%) rotate(-45deg) scale(0);
23
+ top: 50%;
24
+ left: 50%;
25
+ transform-origin: center;
25
26
  opacity: 0;
26
- z-index: -1;
27
+ z-index: -2;
27
28
  background-image: url('./imgs/d.png');
28
29
  background-size: 100%;
29
30
  background-repeat: no-repeat;
30
31
  background-position: center;
31
- transition: all 0.3s ease-out;
32
+ transition: transform 1s linear;
32
33
  pointer-events: none;
33
34
  }
34
35
 
35
- &:hover:after {
36
- transform: translate(-20%, -20%) scale(1);
36
+ &:hover:before {
37
+ transform: translate(-50%, -50%) rotate(0deg) scale(1);
37
38
  opacity: 1;
38
39
  }
39
40
 
@@ -45,6 +46,7 @@
45
46
  .video-img {
46
47
  width: 100%;
47
48
  border-radius: 16px;
49
+ background: #fff;
48
50
 
49
51
  &.cover {
50
52
  position: absolute;
@@ -196,6 +196,7 @@ function compositeDecorator(WrappedComponent) {
196
196
  }
197
197
  }
198
198
 
199
+ wrapStyle.overflow = 'hidden';
199
200
  return wrapStyle;
200
201
  };
201
202
 
@@ -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;
@@ -1,6 +1,5 @@
1
1
  .slide-image-video-wrap {
2
2
  position: relative;
3
- transition: border-radius 0.2s ease;
4
3
  display: flex;
5
4
  border-radius: 16px;
6
5
  --dx: calc(var(--size) - var(--x));
@@ -14,26 +13,28 @@
14
13
  box-shadow: 0px 12px 48px 0px #00000029;
15
14
  }
16
15
 
17
- &:after {
16
+ &:before {
18
17
  content: '';
19
18
  display: block;
20
19
  width: 180%;
21
- height: 180%;
22
- min-height: 100vw / 2.5;
20
+ height: 764px;
23
21
  position: absolute;
24
- transform: translate(-20%, -20%) scale(0);
22
+ transform: translate(-50%, -50%) rotate(-45deg) scale(0);
23
+ top: 50%;
24
+ left: 50%;
25
+ transform-origin: center;
25
26
  opacity: 0;
26
- z-index: -1;
27
+ z-index: -2;
27
28
  background-image: url('./imgs/d.png');
28
29
  background-size: 100%;
29
30
  background-repeat: no-repeat;
30
31
  background-position: center;
31
- transition: all 0.3s ease-out;
32
+ transition: transform 1s linear;
32
33
  pointer-events: none;
33
34
  }
34
35
 
35
- &:hover:after {
36
- transform: translate(-20%, -20%) scale(1);
36
+ &:hover:before {
37
+ transform: translate(-50%, -50%) rotate(0deg) scale(1);
37
38
  opacity: 1;
38
39
  }
39
40
 
@@ -45,6 +46,7 @@
45
46
  .video-img {
46
47
  width: 100%;
47
48
  border-radius: 16px;
49
+ background: #fff;
48
50
 
49
51
  &.cover {
50
52
  position: absolute;
@@ -196,6 +196,7 @@ function compositeDecorator(WrappedComponent) {
196
196
  }
197
197
  }
198
198
 
199
+ wrapStyle.overflow = 'hidden';
199
200
  return wrapStyle;
200
201
  };
201
202
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "1.0.154",
4
+ "version": "1.0.156",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",