src/FilterItem.js
/**
   * Filters in a specific FilterItem out of the grid.
   * @param {Object} cssOptions for the animation
   */
Filters in a specific FilterItem out of the grid.
@param {Object} cssOptions for the animation
Filters in a specific FilterItem out of the grid . @param { Object } cssOptions for the animation
filterIn(targetPos, cssOptions) {
    let filterInCss = makeShallowClone(cssOptions);
    if(this.isRtlEnabled) {
      targetPos.left = targetPos.left * -1;
    }
    filterInCss.transform += ' translate3d(' + targetPos.left + 'px,' + targetPos.top + 'px, 0)';
    this.$node.css(filterInCss);
    this.props.lastPosition = targetPos;
    this.props.filteredOut = false;
  }
filterIn ( targetPos , cssOptions ) { let filterInCss = makeShallowClone ( cssOptions ) ; if ( this . isRtlEnabled ) { targetPos . left = targetPos . left * - 1 ; } filterInCss . transform += ' translate3d(' + targetPos . left + 'px,' + targetPos . top + 'px, 0)' ; this . $node . css ( filterInCss ) ; this . props . lastPosition = targetPos ; this . props . filteredOut = false ; }
Filters in a specific FilterItem out of the grid.
Filters in a specific FilterItem out of the grid .
// Perform a shallow clone of the filtering in css // Enhance it with the target position towards which the item should animate // Animate // Update last position to be the targetPos // Update state