UNPKG

@ssgoi/core

Version:

Core animation engine for SSGOI - Native app-like page transitions with spring physics

21 lines 823 B
import { PhysicsOptions, SggoiTransition } from '../types'; interface DepthOptions { direction?: "enter" | "exit"; physics?: PhysicsOptions; /** Scale offset as a fraction (default: 0.05 = 5%) */ scaleOffset?: number; } /** * Material Design Z-Axis depth transition * * Enter direction (forward navigation): * - IN: New page scales up from 0.8 → 1 with fade in (coming forward) * - OUT: Old page scales up to 1.2 with fade out (going backward), z-index: -1 * * Exit direction (back navigation): * - IN: Returning page scales down from 1.2 → 1 with fade in (coming forward from behind) * - OUT: Current page scales down to 0.8 with fade out (going backward), z-index: 100 */ export declare const depth: (options?: DepthOptions) => SggoiTransition; export {}; //# sourceMappingURL=depth.d.ts.map