@innovastudio/contentbox 1.4.41 → 1.4.42

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbox",
3
3
  "type": "module",
4
- "version": "1.4.41",
4
+ "version": "1.4.42",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "files": [
@@ -96141,10 +96141,6 @@ class AnimateScroll {
96141
96141
 
96142
96142
  try {
96143
96143
  this.read();
96144
-
96145
- if (this.builder.debug) {
96146
- console.log('timeline read() ok');
96147
- }
96148
96144
  } catch (e) {
96149
96145
  // Do Nothing
96150
96146
  if (this.builder.debug) {
@@ -96153,19 +96149,7 @@ class AnimateScroll {
96153
96149
  }
96154
96150
  }
96155
96151
 
96156
- try {
96157
- this.readAnimOnce();
96158
-
96159
- if (this.builder.debug) {
96160
- console.log('timeline readAnimOnce() ok');
96161
- }
96162
- } catch (e) {
96163
- // Do Nothing
96164
- if (this.builder.debug) {
96165
- console.log('timeline readAnimOnce() error');
96166
- console.log(e);
96167
- }
96168
- }
96152
+ this.readAnimOnce();
96169
96153
  }
96170
96154
 
96171
96155
  clearSettings() {
@@ -96351,7 +96335,12 @@ class AnimateScroll {
96351
96335
 
96352
96336
  read() {
96353
96337
  // clear
96354
- this.clearSettings(); // Section Pin
96338
+ this.clearSettings();
96339
+
96340
+ if (this.builder.debug) {
96341
+ console.log('1');
96342
+ } // Section Pin
96343
+
96355
96344
 
96356
96345
  const activeSection = this.builder.activeSection;
96357
96346
 
@@ -96401,10 +96390,19 @@ class AnimateScroll {
96401
96390
  }
96402
96391
  }
96403
96392
 
96393
+ if (this.builder.debug) {
96394
+ console.log('2');
96395
+ }
96396
+
96404
96397
  let activeElement;
96405
96398
  let target = this.getTarget();
96406
96399
  activeElement = target.element;
96407
- if (!activeElement) return; // Default
96400
+ if (!activeElement) return;
96401
+
96402
+ if (this.builder.debug) {
96403
+ console.log('3');
96404
+ } // Default
96405
+
96408
96406
 
96409
96407
  let btnBasic;
96410
96408
  if (activeElement.classList.contains('is-fadeIn')) btnBasic = this.modalAnimateScroll.querySelector('.cmd-basic-anim[data-value="is-fadeIn"]');
@@ -96449,7 +96447,12 @@ class AnimateScroll {
96449
96447
  } else {
96450
96448
  btn.classList.remove('on');
96451
96449
  }
96452
- }); // Simple Scroll
96450
+ });
96451
+
96452
+ if (this.builder.debug) {
96453
+ console.log('4');
96454
+ } // Simple Scroll
96455
+
96453
96456
 
96454
96457
  const inpSimpleScrollX_Start = this.modalAnimateScroll.querySelector('.inp-simplescroll-x-start');
96455
96458
  const inpSimpleScrollX_15 = this.modalAnimateScroll.querySelector('.inp-simplescroll-x-15');
@@ -96542,6 +96545,10 @@ class AnimateScroll {
96542
96545
  inpSimpleScrollOpacity_85.value = '';
96543
96546
  inpSimpleScrollOpacity_End.value = '';
96544
96547
 
96548
+ if (this.builder.debug) {
96549
+ console.log('5');
96550
+ }
96551
+
96545
96552
  if (activeElement.hasAttribute('data-bottom-top') && activeElement.hasAttribute('data-top-bottom') && !(activeElement.hasAttribute('data-center-bottom') || activeElement.hasAttribute('data-100-top') || activeElement.hasAttribute('data-50-top') || activeElement.hasAttribute('data-top')) || activeElement.hasAttribute('data-in') || activeElement.hasAttribute('data-in-150') || activeElement.hasAttribute('data-in-300') || activeElement.hasAttribute('data-cen--150') || activeElement.hasAttribute('data-cen') || activeElement.hasAttribute('data-cen-150') || activeElement.hasAttribute('data-out--300') || activeElement.hasAttribute('data-out--150') || activeElement.hasAttribute('data-out')) {
96546
96553
  let dummyElm = document.querySelector('.dummy-elm'); // read v1
96547
96554
 
@@ -96665,7 +96672,12 @@ class AnimateScroll {
96665
96672
  if (transform.translateY) inpSimpleScrollY_End.value = transform.translateY.replace('px', '');
96666
96673
  if (transform.scale) inpSimpleScrollScale_End.value = transform.scale;
96667
96674
  if (transform.rotate) inpSimpleScrollRotate_End.value = transform.rotate;
96668
- if (transform.opacity) inpSimpleScrollOpacity_End.value = transform.opacity; // ---/read
96675
+ if (transform.opacity) inpSimpleScrollOpacity_End.value = transform.opacity;
96676
+
96677
+ if (this.builder.debug) {
96678
+ console.log('timeline read() ok1');
96679
+ } // ---/read
96680
+
96669
96681
 
96670
96682
  if (!this.modalAnimateScroll.querySelector('.cmd-start.on')) {
96671
96683
  // default
@@ -96685,9 +96697,17 @@ class AnimateScroll {
96685
96697
  if (btn) btn.classList.add('on');
96686
96698
  }
96687
96699
 
96700
+ if (this.builder.debug) {
96701
+ console.log('timeline read() ok2');
96702
+ }
96703
+
96688
96704
  return true;
96689
96705
  } // Scroll
96690
- // enter start
96706
+
96707
+
96708
+ if (this.builder.debug) {
96709
+ console.log('6');
96710
+ } // enter start
96691
96711
 
96692
96712
 
96693
96713
  let css1 = activeElement.getAttribute('data-bottom-top');
@@ -96750,6 +96770,10 @@ class AnimateScroll {
96750
96770
  if (btn) btn.classList.add('on');
96751
96771
  }
96752
96772
 
96773
+ if (this.builder.debug) {
96774
+ console.log('7');
96775
+ }
96776
+
96753
96777
  let dummyElm = document.querySelector('.dummy-elm');
96754
96778
  dummyElm.style.cssText = css1;
96755
96779
  let transform = this.getTransform(dummyElm, css1); // console.log(transform);
@@ -96808,6 +96832,10 @@ class AnimateScroll {
96808
96832
  if (transform.opacity) {
96809
96833
  btn = this.divEnterAnim.querySelector('.cmd-fade');
96810
96834
  if (btn) btn.classList.add('on');
96835
+ }
96836
+
96837
+ if (this.builder.debug) {
96838
+ console.log('8');
96811
96839
  } // --- LEAVE ---
96812
96840
 
96813
96841
 
@@ -96874,6 +96902,10 @@ class AnimateScroll {
96874
96902
  }
96875
96903
  }
96876
96904
 
96905
+ if (this.builder.debug) {
96906
+ console.log('9');
96907
+ }
96908
+
96877
96909
  const inpScale_leave = this.divLeaveAnim.querySelector('.inp-scale');
96878
96910
 
96879
96911
  if (transform.scale) {
@@ -96896,6 +96928,10 @@ class AnimateScroll {
96896
96928
  if (btn) btn.classList.add('on');
96897
96929
  }
96898
96930
 
96931
+ if (this.builder.debug) {
96932
+ console.log('10');
96933
+ }
96934
+
96899
96935
  return true;
96900
96936
  }
96901
96937