From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- node_modules/swup/src/modules/animatePageOut.ts | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100755 node_modules/swup/src/modules/animatePageOut.ts (limited to 'node_modules/swup/src/modules/animatePageOut.ts') diff --git a/node_modules/swup/src/modules/animatePageOut.ts b/node_modules/swup/src/modules/animatePageOut.ts deleted file mode 100755 index d42bf57f..00000000 --- a/node_modules/swup/src/modules/animatePageOut.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type Swup from '../Swup.js'; -import type { Visit } from './Visit.js'; - -/** - * Perform the out/leave animation of the current page. - * @returns Promise - */ -export const animatePageOut = async function (this: Swup, visit: Visit) { - await this.hooks.call('animation:out:start', visit, undefined, () => { - this.classes.add('is-changing', 'is-animating', 'is-leaving'); - }); - - await this.hooks.call('animation:out:await', visit, { skip: false }, (visit, { skip }) => { - if (skip) return; - return this.awaitAnimations({ selector: visit.animation.selector }); - }); - - await this.hooks.call('animation:out:end', visit, undefined); -}; -- cgit v1.2.3