@innovastudio/contentbox 1.4.42 → 1.4.43
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
@@ -93687,7 +93687,7 @@ class AnimateScroll {
|
|
93687
93687
|
|
93688
93688
|
<div style="margin-top: 20px;margin-left: 22px;margin-bottom: 20px;">
|
93689
93689
|
|
93690
|
-
<table style="margin:12px 0 0 0;">
|
93690
|
+
<table style="margin:12px 0 0 0;border-collapse:initial;">
|
93691
93691
|
|
93692
93692
|
<tr>
|
93693
93693
|
<td colspan="4"><span class="bold">${out('Slide Horizontal')}</span>:</td>
|
@@ -96139,16 +96139,7 @@ class AnimateScroll {
|
|
96139
96139
|
btn.classList.add('on');
|
96140
96140
|
}
|
96141
96141
|
|
96142
|
-
|
96143
|
-
this.read();
|
96144
|
-
} catch (e) {
|
96145
|
-
// Do Nothing
|
96146
|
-
if (this.builder.debug) {
|
96147
|
-
console.log('timeline read() error');
|
96148
|
-
console.log(e);
|
96149
|
-
}
|
96150
|
-
}
|
96151
|
-
|
96142
|
+
this.read();
|
96152
96143
|
this.readAnimOnce();
|
96153
96144
|
}
|
96154
96145
|
|
@@ -96335,12 +96326,7 @@ class AnimateScroll {
|
|
96335
96326
|
|
96336
96327
|
read() {
|
96337
96328
|
// clear
|
96338
|
-
this.clearSettings();
|
96339
|
-
|
96340
|
-
if (this.builder.debug) {
|
96341
|
-
console.log('1');
|
96342
|
-
} // Section Pin
|
96343
|
-
|
96329
|
+
this.clearSettings(); // Section Pin
|
96344
96330
|
|
96345
96331
|
const activeSection = this.builder.activeSection;
|
96346
96332
|
|
@@ -96390,19 +96376,10 @@ class AnimateScroll {
|
|
96390
96376
|
}
|
96391
96377
|
}
|
96392
96378
|
|
96393
|
-
if (this.builder.debug) {
|
96394
|
-
console.log('2');
|
96395
|
-
}
|
96396
|
-
|
96397
96379
|
let activeElement;
|
96398
96380
|
let target = this.getTarget();
|
96399
96381
|
activeElement = target.element;
|
96400
|
-
if (!activeElement) return;
|
96401
|
-
|
96402
|
-
if (this.builder.debug) {
|
96403
|
-
console.log('3');
|
96404
|
-
} // Default
|
96405
|
-
|
96382
|
+
if (!activeElement) return; // Default
|
96406
96383
|
|
96407
96384
|
let btnBasic;
|
96408
96385
|
if (activeElement.classList.contains('is-fadeIn')) btnBasic = this.modalAnimateScroll.querySelector('.cmd-basic-anim[data-value="is-fadeIn"]');
|
@@ -96447,12 +96424,7 @@ class AnimateScroll {
|
|
96447
96424
|
} else {
|
96448
96425
|
btn.classList.remove('on');
|
96449
96426
|
}
|
96450
|
-
});
|
96451
|
-
|
96452
|
-
if (this.builder.debug) {
|
96453
|
-
console.log('4');
|
96454
|
-
} // Simple Scroll
|
96455
|
-
|
96427
|
+
}); // Simple Scroll
|
96456
96428
|
|
96457
96429
|
const inpSimpleScrollX_Start = this.modalAnimateScroll.querySelector('.inp-simplescroll-x-start');
|
96458
96430
|
const inpSimpleScrollX_15 = this.modalAnimateScroll.querySelector('.inp-simplescroll-x-15');
|
@@ -96545,10 +96517,6 @@ class AnimateScroll {
|
|
96545
96517
|
inpSimpleScrollOpacity_85.value = '';
|
96546
96518
|
inpSimpleScrollOpacity_End.value = '';
|
96547
96519
|
|
96548
|
-
if (this.builder.debug) {
|
96549
|
-
console.log('5');
|
96550
|
-
}
|
96551
|
-
|
96552
96520
|
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')) {
|
96553
96521
|
let dummyElm = document.querySelector('.dummy-elm'); // read v1
|
96554
96522
|
|
@@ -96672,12 +96640,9 @@ class AnimateScroll {
|
|
96672
96640
|
if (transform.translateY) inpSimpleScrollY_End.value = transform.translateY.replace('px', '');
|
96673
96641
|
if (transform.scale) inpSimpleScrollScale_End.value = transform.scale;
|
96674
96642
|
if (transform.rotate) inpSimpleScrollRotate_End.value = transform.rotate;
|
96675
|
-
if (transform.opacity) inpSimpleScrollOpacity_End.value = transform.opacity;
|
96676
|
-
|
96677
|
-
if (this.builder.debug) {
|
96678
|
-
console.log('timeline read() ok1');
|
96679
|
-
} // ---/read
|
96643
|
+
if (transform.opacity) inpSimpleScrollOpacity_End.value = transform.opacity; // ---/read
|
96680
96644
|
|
96645
|
+
let btn;
|
96681
96646
|
|
96682
96647
|
if (!this.modalAnimateScroll.querySelector('.cmd-start.on')) {
|
96683
96648
|
// default
|
@@ -96697,17 +96662,9 @@ class AnimateScroll {
|
|
96697
96662
|
if (btn) btn.classList.add('on');
|
96698
96663
|
}
|
96699
96664
|
|
96700
|
-
if (this.builder.debug) {
|
96701
|
-
console.log('timeline read() ok2');
|
96702
|
-
}
|
96703
|
-
|
96704
96665
|
return true;
|
96705
96666
|
} // Scroll
|
96706
|
-
|
96707
|
-
|
96708
|
-
if (this.builder.debug) {
|
96709
|
-
console.log('6');
|
96710
|
-
} // enter start
|
96667
|
+
// enter start
|
96711
96668
|
|
96712
96669
|
|
96713
96670
|
let css1 = activeElement.getAttribute('data-bottom-top');
|
@@ -96770,10 +96727,6 @@ class AnimateScroll {
|
|
96770
96727
|
if (btn) btn.classList.add('on');
|
96771
96728
|
}
|
96772
96729
|
|
96773
|
-
if (this.builder.debug) {
|
96774
|
-
console.log('7');
|
96775
|
-
}
|
96776
|
-
|
96777
96730
|
let dummyElm = document.querySelector('.dummy-elm');
|
96778
96731
|
dummyElm.style.cssText = css1;
|
96779
96732
|
let transform = this.getTransform(dummyElm, css1); // console.log(transform);
|
@@ -96832,10 +96785,6 @@ class AnimateScroll {
|
|
96832
96785
|
if (transform.opacity) {
|
96833
96786
|
btn = this.divEnterAnim.querySelector('.cmd-fade');
|
96834
96787
|
if (btn) btn.classList.add('on');
|
96835
|
-
}
|
96836
|
-
|
96837
|
-
if (this.builder.debug) {
|
96838
|
-
console.log('8');
|
96839
96788
|
} // --- LEAVE ---
|
96840
96789
|
|
96841
96790
|
|
@@ -96902,10 +96851,6 @@ class AnimateScroll {
|
|
96902
96851
|
}
|
96903
96852
|
}
|
96904
96853
|
|
96905
|
-
if (this.builder.debug) {
|
96906
|
-
console.log('9');
|
96907
|
-
}
|
96908
|
-
|
96909
96854
|
const inpScale_leave = this.divLeaveAnim.querySelector('.inp-scale');
|
96910
96855
|
|
96911
96856
|
if (transform.scale) {
|
@@ -96928,10 +96873,6 @@ class AnimateScroll {
|
|
96928
96873
|
if (btn) btn.classList.add('on');
|
96929
96874
|
}
|
96930
96875
|
|
96931
|
-
if (this.builder.debug) {
|
96932
|
-
console.log('10');
|
96933
|
-
}
|
96934
|
-
|
96935
96876
|
return true;
|
96936
96877
|
}
|
96937
96878
|
|