Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TransitionStrategy

These functions are called when VNodeProperties.enterAnimation and VNodeProperties.exitAnimation are provided as strings. See ProjectionOptions.transitions.

Hierarchy

  • TransitionStrategy

Index

Methods

Methods

enter

  • enter(element: Element, properties: VNodeProperties, enterAnimation: string): void
  • Function that is called when a VNode with an enterAnimation string is added to an already existing parent VNode.

    Parameters

    Returns void

exit

  • exit(element: Element, properties: VNodeProperties, exitAnimation: string, removeElement: function): void
  • Function that is called when a VNode with an exitAnimation string is removed from a existing parent VNode that remains.

    Parameters

    • element: Element

      Element that ought to be removed from the DOM.

    • properties: VNodeProperties

      The properties object that was supplied to the h method that rendered this VNode the previous time.

    • exitAnimation: string

      The string that was passed to VNodeProperties.exitAnimation.

    • removeElement: function

      Function that removes the element from the DOM. This argument is provided purely for convenience. You may use this function to remove the element when the animation is done.

        • (): void
        • Returns void

    Returns void

Generated using TypeDoc