indicator-ui 0.1.30 → 0.1.31
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 +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -55938,7 +55938,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55938
55938
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
55939
55939
|
/* harmony export */ TEXT_AUTO_SCROLL_ANIM: () => (/* binding */ TEXT_AUTO_SCROLL_ANIM)
|
|
55940
55940
|
/* harmony export */ });
|
|
55941
|
-
var DURATION_SPEED =
|
|
55941
|
+
var DURATION_SPEED = 0.025;
|
|
55942
55942
|
function TEXT_AUTO_SCROLL_ANIM() {
|
|
55943
55943
|
var start = function start() {
|
|
55944
55944
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -55953,14 +55953,15 @@ function TEXT_AUTO_SCROLL_ANIM() {
|
|
|
55953
55953
|
var scrollWidth = obj.scrollWidth;
|
|
55954
55954
|
var containerWidth = obj.clientWidth;
|
|
55955
55955
|
var distance = scrollWidth - containerWidth;
|
|
55956
|
+
console.log(scrollWidth, containerWidth);
|
|
55956
55957
|
if (distance <= 0) return timeline;
|
|
55957
|
-
timeline.clear()
|
|
55958
|
-
timeline.to(obj, {
|
|
55958
|
+
timeline.clear().to(obj, {
|
|
55959
55959
|
x: -distance,
|
|
55960
|
-
duration: distance
|
|
55960
|
+
duration: distance * DURATION_SPEED * xSpeed,
|
|
55961
55961
|
ease: "power1.inOut",
|
|
55962
55962
|
repeat: -1,
|
|
55963
|
-
yoyo: true
|
|
55963
|
+
yoyo: true,
|
|
55964
|
+
repeatDelay: 1
|
|
55964
55965
|
});
|
|
55965
55966
|
return timeline;
|
|
55966
55967
|
};
|