@namnguyenthanhwork/react-snowfall-effect
Version:
Create stunning, customizable snowfall animations for your React applications with ease. Perfect for winter themes, Christmas websites, or any application that needs beautiful falling particle effects.
42 lines (41 loc) • 850 B
TypeScript
export interface SnowfallProps {
snowflakeCount?: number;
images?: string[];
speed?: {
min: number;
max: number;
};
wind?: {
min: number;
max: number;
};
size?: {
min: number;
max: number;
};
opacity?: {
min: number;
max: number;
};
rotation?: {
enabled: boolean;
speed: {
min: number;
max: number;
};
};
colors?: string[];
className?: string;
style?: React.CSSProperties;
zIndex?: number;
fps?: number;
snowflakeShape?: 'circle' | 'star' | 'dot';
fadeEdges?: boolean;
followMouse?: boolean;
gravity?: number;
bounce?: boolean;
melt?: boolean;
accumulate?: boolean;
}
declare const Snowfall: React.FC<SnowfallProps>;
export default Snowfall;