vue3-prlx
Version:
This is a package created to practice building Vue TypeScript packages with Vite. ### this is the vue 3 version of (https://github.com/gerasimvol/vue-prlx)
40 lines (39 loc) • 901 B
TypeScript
export interface Modifiers {
mobile?: boolean;
background?: boolean;
}
export interface Values {
horizontal?: boolean;
fromBottom?: boolean;
custom?: boolean;
reverse?: boolean;
speed?: number;
preserveInitialPosition?: boolean;
direction?: string;
limit?: {
min: number;
max: number;
} | null;
mobileMaxWidth?: number;
disabled?: boolean;
}
export interface Settings {
horizontal?: boolean;
isParallaxOnMobile: boolean;
background: boolean;
startParallaxFromBottom: boolean;
justAddParallaxValue: boolean;
reverse: boolean;
speed: number;
preserveInitialPosition: boolean;
direction: string;
limit: {
min: number;
max: number;
} | null;
mobileMaxWidth: number;
isDisabled: boolean;
}
export type EL = HTMLElement & {
__prlxRequestAnimationFrameId?: number;
};