From f2eed15c021b038a77cb97e71c565823ef2c16fb Mon Sep 17 00:00:00 2001 From: Romain l'Ourson Date: Sat, 30 Nov 2024 18:25:14 +0100 Subject: [PATCH] docs: fix scale description (#14454) * Fix scale description * regenerate --------- Co-authored-by: Rich Harris --- packages/svelte/src/transition/index.js | 2 +- packages/svelte/types/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/svelte/src/transition/index.js b/packages/svelte/src/transition/index.js index 8cc054cba22b..41231062115d 100644 --- a/packages/svelte/src/transition/index.js +++ b/packages/svelte/src/transition/index.js @@ -136,7 +136,7 @@ export function slide(node, { delay = 0, duration = 400, easing = cubic_out, axi } /** - * 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 opacity and scale of an element. `in` transitions animate from the provided values, passed as parameters, to an element's current (default) values. `out` transitions animate from an element's default values to the provided values. * * @param {Element} node * @param {ScaleParams} [params] diff --git a/packages/svelte/types/index.d.ts b/packages/svelte/types/index.d.ts index 01119e748572..c30662cc76dd 100644 --- a/packages/svelte/types/index.d.ts +++ b/packages/svelte/types/index.d.ts @@ -1942,7 +1942,7 @@ declare module 'svelte/transition' { * */ export function slide(node: Element, { delay, duration, easing, axis }?: SlideParams | undefined): TransitionConfig; /** - * 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 opacity and scale of an element. `in` transitions animate from the provided values, passed as parameters, to an element's current (default) values. `out` transitions animate from an element's default values to the provided values. * * */ export function scale(node: Element, { delay, duration, easing, start, opacity }?: ScaleParams | undefined): TransitionConfig;