MCPcopy
hub / github.com/sveltejs/svelte / out

Function out

packages/svelte/src/internal/client/dom/elements/transitions.js:268–290  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

266 );
267 },
268 out(fn) {
269 if (!is_outro) {
270 fn?.();
271 current_options = undefined;
272 return;
273 }
274
275 element.inert = true;
276
277 outro = animate(
278 element,
279 get_options(),
280 intro,
281 0,
282 () => {
283 dispatch_event(element, 'outrostart');
284 },
285 () => {
286 dispatch_event(element, 'outroend');
287 fn?.();
288 }
289 );
290 },
291 stop: () => {
292 intro?.abort();
293 outro?.abort();

Callers

nothing calls this directly

Calls 4

animateFunction · 0.85
get_optionsFunction · 0.85
dispatch_eventFunction · 0.85
fnFunction · 0.50

Tested by

no test coverage detected