@motionone/svelte
Advanced tools
Comparing version 10.10.0 to 10.10.1
@@ -747,6 +747,7 @@ function noop$1() { } | ||
} | ||
const animationEasing = isEasingList(easing) | ||
? noopReturn | ||
: getEasingFunction(easing); | ||
const totalDuration = duration * (repeat + 1); | ||
const interpolate$1 = interpolate(keyframes, offset, isEasingList(easing) | ||
? easing.map(getEasingFunction) | ||
: getEasingFunction(easing)); | ||
const interpolate$1 = interpolate(keyframes, offset, isEasingList(easing) ? easing.map(getEasingFunction) : noopReturn); | ||
this.tick = (timestamp) => { | ||
@@ -804,3 +805,4 @@ var _a; | ||
} | ||
const latest = interpolate$1(t >= totalDuration ? 1 : Math.min(iterationProgress, 1)); | ||
const p = t >= totalDuration ? 1 : Math.min(iterationProgress, 1); | ||
const latest = interpolate$1(animationEasing(p)); | ||
output(latest); | ||
@@ -1381,4 +1383,2 @@ const isAnimationFinished = this.playState === "finished" || t >= totalDuration + endDelay; | ||
target = {}; | ||
const resolvedVariants = {}; | ||
const enteringInto = {}; | ||
const animationOptions = {}; | ||
@@ -1391,3 +1391,2 @@ for (const name of stateTypes) { | ||
continue; | ||
resolvedVariants[name] = variant; | ||
for (const key in variant) { | ||
@@ -1398,6 +1397,2 @@ if (key === "transition") | ||
animationOptions[key] = getOptions((_b = (_a = variant.transition) !== null && _a !== void 0 ? _a : options.transition) !== null && _b !== void 0 ? _b : {}, key); | ||
/** | ||
* Mark which state type this value is animating into. | ||
*/ | ||
enteringInto[key] = name; | ||
} | ||
@@ -1404,0 +1399,0 @@ } |
{ | ||
"name": "@motionone/svelte", | ||
"version": "10.10.0", | ||
"version": "10.10.1", | ||
"description": "A tiny, performant animation library for Svelte", | ||
@@ -17,3 +17,3 @@ "author": "Matt Perry", | ||
"dependencies": { | ||
"@motionone/dom": "^10.10.0", | ||
"@motionone/dom": "^10.10.1", | ||
"tslib": "^2.3.1" | ||
@@ -34,3 +34,3 @@ }, | ||
}, | ||
"gitHead": "a405d387c402bd1b89a5ab27833c5b4612ee599a" | ||
"gitHead": "80f2fa071ff960c9260bb70d12b09464e0076f91" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
247114
1638
Updated@motionone/dom@^10.10.1