Function transition

  • specify a global transition effect

    Parameters

    • effect: string

      (only "fade" is supported for now)

    • color: any

      a CSS color value

    • Optionalduration: number

      expressed in milliseconds

    Returns void

    transition

    state