Interface IAnimationItem

animated row item

interface IAnimationItem {
    current: {
        height: null | number;
        index: number;
        y: number;
    };
    key: string;
    mode: EAnimationMode;
    node: HTMLElement;
    nodeY: number;
    nodeYCurrentHeight: number;
    previous: {
        height: null | number;
        index: number;
        y: number;
    };
}

Properties

current: {
    height: null | number;
    index: number;
    y: number;
}

current position

Type declaration

  • height: null | number
  • index: number
  • y: number
key: string
node: HTMLElement
nodeY: number

position of the added node considering the previous height

nodeYCurrentHeight: number

position of the added node considering the current height

previous: {
    height: null | number;
    index: number;
    y: number;
}

previous context information

Type declaration

  • height: null | number
  • index: number
  • y: number