@blinkk/degu
    Preparing search index...

    Function setCssVariable

    • Sets a css variable to an element.

        dom.setCssVariable(
      myElement, '--chapter-height', '100px');

      Parameters

      • element: HTMLElement

        The element to set the css variable.

      • name: string

        The name of the css variable. Should start with --. Exampe: --height

      • value: string | number

        The value to set.

      Returns void