You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/svelte/src/motion/spring.js
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
/** @import { Task } from '#client' */
2
2
/** @import { SpringOpts, SpringUpdateOpts, TickContext } from './private.js' */
3
-
/** @import { Spring as SpringStore } from './public.js' */
3
+
/** @import { MotionRecord, Spring as SpringStore } from './public.js' */
4
4
import{writable}from'../store/shared/index.js';
5
5
import{loop}from'../internal/client/loop.js';
6
6
import{raf}from'../internal/client/timing.js';
@@ -58,7 +58,7 @@ function tick_spring(ctx, last_value, current_value, target_value) {
58
58
* The spring function in Svelte creates a store whose value is animated, with a motion that simulates the behavior of a spring. This means when the value changes, instead of transitioning at a steady rate, it "bounces" like a spring would, depending on the physics parameters provided. This adds a level of realism to the transitions and can enhance the user experience.
59
59
*
60
60
* @deprecated Use [`Spring`](https://svelte.dev/docs/svelte/svelte-motion#Spring) instead
0 commit comments