src/FilterItem.js
/**
   * Filters out a specific FilterItem out of the grid.
   * @param {Object} cssOptions for the animation
   */
Filters out a specific FilterItem out of the grid.
@param {Object} cssOptions for the animation
Filters out a specific FilterItem out of the grid . @param { Object } cssOptions for the animation
filterOut(cssOptions) {
    let filterOutCss = makeShallowClone(cssOptions);
    const { lastPosition } = this.props;
    filterOutCss.transform += ' translate3d(' + lastPosition.left + 'px,' + lastPosition.top + 'px, 0)';
    this.$node.css(filterOutCss);
    this.props.filteredOut = true;
  }
filterOut ( cssOptions ) { let filterOutCss = makeShallowClone ( cssOptions ) ; const { lastPosition } = this . props ; filterOutCss . transform += ' translate3d(' + lastPosition . left + 'px,' + lastPosition . top + 'px, 0)' ; this . $node . css ( filterOutCss ) ; this . props . filteredOut = true ; }
Filters out a specific FilterItem out of the grid.
Filters out a specific FilterItem out of the grid .
// Perform a shallow clone of the filtering out css // Auto add translate to transform over user-defined filterOut styles // Play animation // Update state