docs/vendor/mixitup/mixitup.js
function() {
            var self = this,
                args = self.parseRemoveArgs(arguments);

            return self.multimix({
                remove: args.command
            }, args.animate, args.callback);
        }
function() {
            var self = this,
                args = self.parseRemoveArgs(arguments);

            return self.multimix({
                remove: args.command
            }, args.animate, args.callback);
        }
function ( ) { var self = this , args = self . parseRemoveArgs ( arguments ) ; return self . multimix ( { remove : args . command } , args . animate , args . callback ) ; }
Removes one or more existing target elements from the container.

@example

.remove(elements [, animate] [, callback])

@example <caption>Example 1: Removing an element by reference</caption>

var elementToRemove = containerEl.firstElementChild;

mixer.remove(elementToRemove)
.then(function(state) {
console.log(state.targets.indexOf(elementToRemove) === -1); // true
});

@example <caption>Example 2: Removing a collection of elements by reference</caption>

var elementsToRemove = containerEl.querySelectorAll('.category-a');

console.log(elementsToRemove.length) // 3

mixer.remove(elementsToRemove)
.then(function() {
console.log(containerEl.querySelectorAll('.category-a').length); // 0
});

@example <caption>Example 3: Removing one or more elements by selector</caption>

mixer.remove('.category-a')
.then(function() {
console.log(containerEl.querySelectorAll('.category-a').length); // 0
});

@example <caption>Example 4: Removing an element by index</caption>

console.log(mixer.getState.totalShow); // 4

// Remove the element at index 3

mixer.remove(3)
.then(function(state) {
console.log(state.totalShow); // 3
console.log(state.show[3]); // undefined
});


@public
@instance
@since       3.0.0
@param       {(HTMLElement|Array.<HTMLElement>|string|number)}    elements
A reference to a single element to remove, an array-like collection of elements, a selector string, or the index of an element to remove.
@param       {boolean}   [animate=true]
An optional boolean dictating whether the operation should animate, or occur syncronously with no animation. `true` by default.
@param       {function}  [callback=null]
An optional callback function to be invoked after the operation has completed.
@return      {Promise.<mixitup.State>}
A promise resolving with the current state object.
Removes one or more existing target elements from the container .