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
* Animates the opacity of an element from 0 to the current opacity for `in` transitions and from the current opacity to 0 for `out` transitions.
12
54
*
@@ -25,6 +67,34 @@ export function fade(node, { delay = 0, duration = 400, easing = linear } = {})
25
67
};
26
68
}
27
69
70
+
/**
71
+
* Animates the x and y positions and the opacity of an element. `in` transitions animate from the provided values, passed as parameters to the element's default values. `out` transitions animate from the element's default values to the provided values.
72
+
*
73
+
* https://svelte.dev/docs/svelte-transition#fly
74
+
* @param {Element} node
75
+
* @param {import('./public').FlyParams} [params]
76
+
* @returns {import('./public').TransitionConfig}
77
+
*/
78
+
exportfunctionfly(
79
+
node,
80
+
{ delay =0, duration =400, easing =cubic_out, x =0, y =0, opacity =0}={}
* Animates the opacity and scale of an element. `in` transitions animate from an element's current (default) values to the provided values, passed as parameters. `out` transitions animate from the provided values to an element's default values.
* Animates the stroke of an SVG element, like a snake in a tube. `in` transitions begin with the path invisible and draw the path to the screen over time. `out` transitions start in a visible state and gradually erase the path. `draw` only works with elements that have a `getTotalLength` method, like `<path>` and `<polyline>`.
172
+
*
173
+
* https://svelte.dev/docs/svelte-transition#draw
174
+
* @param {SVGElement & { getTotalLength(): number }} node
0 commit comments