@fonixtree/magic-design 1.0.160 → 1.0.161

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.
@@ -42,6 +42,7 @@ function ParallaxScroll(_a) {
42
42
  colThreeScrollY = _d[0],
43
43
  setColThreeScrollY = _d[1];
44
44
 
45
+ var num = 0;
45
46
  var third = Math.ceil(source.length / 3);
46
47
  var firstPart = source.slice(0, third);
47
48
  var secondPart = source.slice(third, 2 * third);
@@ -86,14 +87,22 @@ function ParallaxScroll(_a) {
86
87
  };
87
88
 
88
89
  var onLoad = function onLoad() {
90
+ // if (num < source.length - 1) {
91
+ // num += 1;
92
+ // } else {
93
+ // initLayout();
94
+ // }
89
95
  initLayout();
96
+ setTimeout(function () {
97
+ initLayout();
98
+ }, 1000);
90
99
  };
91
100
 
92
101
  (0, _react.useEffect)(function () {
93
102
  if (!(0, _coreUtil.isDesignMode)()) {
94
103
  // setTimeout(() => {
95
104
  // initLayout();
96
- // }, 1500);
105
+ // }, 1000);
97
106
  window.addEventListener('resize', (0, _debounce["default"])(initLayout, 200));
98
107
  return function () {
99
108
  window.removeEventListener('resize', initLayout);
@@ -42,6 +42,7 @@ function ParallaxScroll(_a) {
42
42
  colThreeScrollY = _d[0],
43
43
  setColThreeScrollY = _d[1];
44
44
 
45
+ var num = 0;
45
46
  var third = Math.ceil(source.length / 3);
46
47
  var firstPart = source.slice(0, third);
47
48
  var secondPart = source.slice(third, 2 * third);
@@ -86,14 +87,22 @@ function ParallaxScroll(_a) {
86
87
  };
87
88
 
88
89
  var onLoad = function onLoad() {
90
+ // if (num < source.length - 1) {
91
+ // num += 1;
92
+ // } else {
93
+ // initLayout();
94
+ // }
89
95
  initLayout();
96
+ setTimeout(function () {
97
+ initLayout();
98
+ }, 1000);
90
99
  };
91
100
 
92
101
  (0, _react.useEffect)(function () {
93
102
  if (!(0, _coreUtil.isDesignMode)()) {
94
103
  // setTimeout(() => {
95
104
  // initLayout();
96
- // }, 1500);
105
+ // }, 1000);
97
106
  window.addEventListener('resize', (0, _debounce["default"])(initLayout, 200));
98
107
  return function () {
99
108
  window.removeEventListener('resize', initLayout);
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.160",
4
+ "version": "1.0.161",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",