@impossiblefinance/uikit
Version:
Set of UI components for impossible projects
21 lines (20 loc) • 522 B
TypeScript
declare type ParticleOptions = {
size?: number;
distance?: number;
};
declare type Options = {
imgSrc: string;
selector?: string;
numberOfParticles?: number;
debounceDuration?: number;
disableWhen?: () => boolean;
particleOptions?: ParticleOptions;
};
/**
* @see https://css-tricks.com/playing-with-particles-using-the-web-animations-api/
*/
declare const useParticleBurst: (options: Options) => {
initialize: () => void;
teardown: () => void;
};
export default useParticleBurst;