UNPKG

@humanspeak/svelte-motion

Version:

Framer Motion for Svelte 5. Declarative motion.<tag> components with AnimatePresence exit animations, gestures (hover, tap, drag, focus, in-view), variants, FLIP layout animations, shared-layout transitions, spring physics, and scroll-linked motion values

19 lines (18 loc) 600 B
/** * Detect whether the current page is running inside a Playwright test. * * @returns `true` when the URL contains the `@isPlaywright=true` query param. */ export declare const isPlaywrightEnv: () => boolean; /** * Log to the console only in DEV mode inside a Playwright environment. * * @param args Values forwarded to `console.log`. */ export declare const pwLog: (...args: unknown[]) => void; /** * Warn to the console only in DEV mode inside a Playwright environment. * * @param args Values forwarded to `console.warn`. */ export declare const pwWarn: (...args: unknown[]) => void;