Type alias GlitchHandle

GlitchHandle: {
    ref: ((node) => void);
    startGlitch: (() => void);
    stopGlitch: (() => void);
    setOptions: ((options) => void);
}

Handle to control the glitch once useGlitch is called.

Type declaration

  • ref: ((node) => void)
      • (node): void
      • Function to use as ref for the element to glitch.

        Parameters

        • node: HTMLElement | null

        Returns void

  • startGlitch: (() => void)
      • (): void
      • Glitch control to start the glitch animation.

        Returns void

  • stopGlitch: (() => void)
      • (): void
      • Glitch control to stop the glitch animation.

        Returns void

  • setOptions: ((options) => void)
      • (options): void
      • Change the glitch options.

        Parameters

        • options: RecursivePartial<PowerGlitchOptions>

        Returns void

Generated using TypeDoc