codrops/Elastislide — pull request #2 by davidmarkclements (2012-10-30 14:47:05+00:00)
Title: minItems as fn for changing minItems on resize

Alterations allows user to pass in either a number OR function to minItems.
The function takes one parameter "ww" (window width), and must return
a number (which becomes the minItems value).

So it could look like this:

$('#carousel').elastislide({
minItems	: function (ww) { return ((ww < 480) ? 3 : (ww < 768) ? 4 : 5); }
});

So if window width is less than 480, minItems is 3, less than 768 its 4 otherwise
minItems is 5.