shine-on-hover
Version:
Lightweight, zero-dependency library for adding a mouse-tracking shine effect.
12 lines (11 loc) • 458 B
TypeScript
import type { ShineConfig, SmoothnessMode } from './types';
export declare const SMOOTHNESS_VALUES: Record<SmoothnessMode, number>;
export declare const DEFAULT_CONFIG: Required<ShineConfig>;
export declare const CSS_VARS: {
readonly mouseX: "--shine-x";
readonly mouseY: "--shine-y";
readonly shineFrom: "--shine-from";
readonly shineTo: "--shine-to";
readonly shineColor: "--shine-color";
readonly shineBorder: "--shine-border";
};