mithril-materialized
Version:
A materialize library for mithril.
15 lines (14 loc) • 499 B
TypeScript
import { FactoryComponent, Attributes } from 'mithril';
export interface ParallaxAttrs extends Attributes {
/** Enable responsive parallax (disable on mobile for performance) */
responsiveThreshold?: number;
/** Image source */
src: string;
/** Alt text for the image */
alt?: string;
}
/**
* MaterializeCSS Parallax component with dynamic positioning
* Port of the original MaterializeCSS parallax logic
*/
export declare const Parallax: FactoryComponent<ParallaxAttrs>;