UNPKG

use-cornify

Version:

🦄 Put unicorns and rainbows on any website on the Internet with a single React Hook!

43 lines (42 loc) • 1.15 kB
interface CornifyOptions { y?: number; younicorns?: string; addMagicalWords?: boolean; addCupcakeButton?: boolean; } export declare class Cornify { private options; private count; private magicalWords; private addKeyboardEvent; constructor(options?: CornifyOptions); start(): void; private initCounter; private bindEvents; private removeEvents; private createUnicornContainer; private showGrandUnicorn; private randomizeUnicornPosition; private createUnicornImage; private onUnicornMouseOver; private onUnicornMouseOut; add(): void; private dispatchAddEvent; private createCountElement; private updateCount; private setCookie; private getCookie; remove(): void; private removeAllUnicorns; private removeCounter; private removeCupcakeButton; private addCornifyCss; private removeCornifyCss; private getHeadings; private addMagicalWords; private removeMagicalWords; private createCupcakeButton; private createCupcakeImage; addCupcakeButton(): void; } export {};