@ssgoi/core
Version:
Core animation engine for SSGOI - Native app-like page transitions with spring physics
16 lines • 560 B
TypeScript
import { PhysicsOptions, SggoiTransition } from '../types';
interface SnapOptions {
direction?: "left" | "right";
physics?: PhysicsOptions;
/** Translation offset in pixels (default: 8) */
translateOffset?: number;
}
/**
* Snap transition - fast, subtle page transition with directional slide
*
* - OUT: Fade out + slide in same direction (waits for completion before IN)
* - IN: Fade in + slide from opposite direction
*/
export declare const snap: (options?: SnapOptions) => SggoiTransition;
export {};
//# sourceMappingURL=snap.d.ts.map