@widelab-nc/widelab 1.1.26 → 1.1.27
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/dist/index.js +2 -2
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/src/index.js +40 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -928,6 +928,8 @@ window.badgeColorChange = function(e) {
|
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
|
|
931
|
+
|
|
932
|
+
|
|
931
933
|
// Stats section headline animation
|
|
932
934
|
window.statsHeadlineAnimation = function() {
|
|
933
935
|
const statsHeadlineAnimation = gsap.timeline({
|
|
@@ -1060,7 +1062,44 @@ window.heroSliders = function(e) {
|
|
|
1060
1062
|
|
|
1061
1063
|
|
|
1062
1064
|
|
|
1063
|
-
|
|
1065
|
+
// Sliders on Services page
|
|
1066
|
+
window.servicesSliders = function(e) {
|
|
1067
|
+
const config = {
|
|
1068
|
+
type: 'loop',
|
|
1069
|
+
perPage: 1,
|
|
1070
|
+
gap: 0,
|
|
1071
|
+
arrows: false,
|
|
1072
|
+
drag: false,
|
|
1073
|
+
duration: 0.15,
|
|
1074
|
+
easing: 'cubic-bezier(0.83, 0, 0.17, 1)',
|
|
1075
|
+
classes: {
|
|
1076
|
+
pagination: 'splide__pagination services-pagination',
|
|
1077
|
+
page: 'splide__pagination__page services-page',
|
|
1078
|
+
},
|
|
1079
|
+
breakpoints: {
|
|
1080
|
+
992: { drag: true, fixedWidth: '90%' },
|
|
1081
|
+
480: {},
|
|
1082
|
+
},
|
|
1083
|
+
};
|
|
1084
|
+
const slider = new Splide(e, config).mount();
|
|
1085
|
+
if (window.innerWidth > 992) {
|
|
1086
|
+
slider.on('click', function () {
|
|
1087
|
+
slider.go('+1');
|
|
1088
|
+
});
|
|
1089
|
+
}
|
|
1090
|
+
gsap.from(e, {
|
|
1091
|
+
scrollTrigger: {
|
|
1092
|
+
trigger: e,
|
|
1093
|
+
start: 'top bottom',
|
|
1094
|
+
end: 'bottom bottom+=15%',
|
|
1095
|
+
scrub: 1,
|
|
1096
|
+
once: true,
|
|
1097
|
+
},
|
|
1098
|
+
x: '10%',
|
|
1099
|
+
opacity: 0,
|
|
1100
|
+
ease: 'linear',
|
|
1101
|
+
});
|
|
1102
|
+
}
|
|
1064
1103
|
|
|
1065
1104
|
|
|
1066
1105
|
|