/** * Scroll-linked parallax effect. * * @module bquery/motion */ import type { ParallaxCleanup, ParallaxOptions } from './types'; /** * Apply a scroll-linked parallax effect to an element. * * The element's position is translated based on the scroll position * multiplied by the speed factor. A speed of `0.5` means the element * moves at half the scroll speed (classic background parallax). * * @param element - The element to apply the parallax effect to * @param options - Parallax configuration * @returns A cleanup function that removes the scroll listener * * @example * ```ts * const cleanup = parallax(document.querySelector('.hero-bg')!, { * speed: 0.3, * direction: 'vertical', * }); * * // Later, remove the effect: * cleanup(); * ``` */ export declare const parallax: (element: Element, options?: ParallaxOptions) => ParallaxCleanup; //# sourceMappingURL=parallax.d.ts.map