src/Filterizr.js
/**
   * Shuffles the FilterItems in the grid, making sure their positions have changed. 
   */
Shuffles the FilterItems in the grid, making sure their positions have changed.
Shuffles the FilterItems in the grid making sure their positions have changed .
shuffle() {
    const {
      FilterContainer,
      FilteredItems,
    } = this.props;
    FilterContainer.trigger('shufflingStart');
    this.props.filterizrState = FILTERIZR_STATE.SHUFFLING;
    const ShuffledItems = this.shuffleFilterItems(FilteredItems);
    this.props.FilteredItems = ShuffledItems;
    this.render(ShuffledItems);
  }
shuffle ( ) { const { FilterContainer , FilteredItems , } = this . props ; FilterContainer . trigger ( 'shufflingStart' ) ; this . props . filterizrState = FILTERIZR_STATE . SHUFFLING ; const ShuffledItems = this . shuffleFilterItems ( FilteredItems ) ; this . props . FilteredItems = ShuffledItems ; this . render ( ShuffledItems ) ; }
Shuffles the FilterItems in the grid, making sure their positions have changed.
Shuffles the FilterItems in the grid making sure their positions have changed .
// Trigger filteringStart event // Set animation state to trigger callbacks // Generate array of shuffled items // Update the FilteredItems to equal the array of the shuffled items // Render the items after shuffling