@frybynite/image-cloud 0.4.1 → 0.5.0
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/image-cloud-auto-init.js +5 -8
- package/dist/image-cloud-auto-init.js.map +1 -1
- package/dist/image-cloud.js +5 -8
- package/dist/image-cloud.js.map +1 -1
- package/dist/image-cloud.umd.js +1 -1
- package/dist/image-cloud.umd.js.map +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/react.d.ts +1637 -0
- package/dist/react.js +3256 -0
- package/dist/react.js.map +1 -0
- package/dist/vue.d.ts +1637 -0
- package/dist/vue.js +3270 -0
- package/dist/vue.js.map +1 -0
- package/dist/web-component.d.ts +1637 -0
- package/dist/web-component.js +3294 -0
- package/dist/web-component.js.map +1 -0
- package/package.json +32 -4
package/dist/image-cloud.js
CHANGED
|
@@ -155,10 +155,8 @@ const ft = Object.freeze({
|
|
|
155
155
|
})
|
|
156
156
|
}),
|
|
157
157
|
timing: Object.freeze({
|
|
158
|
-
duration: 600
|
|
158
|
+
duration: 600
|
|
159
159
|
// ms
|
|
160
|
-
stagger: 150
|
|
161
|
-
// ms between images
|
|
162
160
|
}),
|
|
163
161
|
easing: "cubic-bezier(0.25, 1, 0.5, 1)",
|
|
164
162
|
// smooth deceleration
|
|
@@ -821,13 +819,13 @@ class ie {
|
|
|
821
819
|
* Get animation parameters for an image
|
|
822
820
|
*/
|
|
823
821
|
getAnimationParams(t) {
|
|
824
|
-
const e = this.config.timing.duration, i = this.config.
|
|
822
|
+
const e = this.config.timing.duration, i = this.config.easing;
|
|
825
823
|
return {
|
|
826
824
|
startTransform: "",
|
|
827
825
|
// Will be computed by caller based on start position
|
|
828
826
|
duration: e,
|
|
829
|
-
delay:
|
|
830
|
-
easing:
|
|
827
|
+
delay: 0,
|
|
828
|
+
easing: i
|
|
831
829
|
};
|
|
832
830
|
}
|
|
833
831
|
/**
|
|
@@ -880,8 +878,7 @@ class ie {
|
|
|
880
878
|
*/
|
|
881
879
|
getTiming() {
|
|
882
880
|
return {
|
|
883
|
-
duration: this.config.timing.duration
|
|
884
|
-
stagger: this.config.timing.stagger
|
|
881
|
+
duration: this.config.timing.duration
|
|
885
882
|
};
|
|
886
883
|
}
|
|
887
884
|
/**
|