Sufficiently Advanced Software Development
Scatter is a JavaScript library for randomly arranging HTML elements within a containing element.
The main use case is an image gallery, but the library does not restrict what it can be used for - it can provide a scattered polaroid photo effect as easily as using decorative images to provide a randomized background, or any other reasons for scattering items your imagination can come up with.
* The browser must support
Object.assign
and
Array.from
methods,
which have both been provided by all major browsers since 2015.
Using polyfills allows Scatter to work with earlier browsers, including Internet Explorer 11.0.9600, and perhaps as early as Firefox 3.6.
With a polyfill for Element.classList
it might work as far back as IE9, but this has not been tested, and is not supported.
new Scatter(selector,options)
See the documentation for further information, configuration options, and examples of use.
Package includes scatter.js plus documentation and demo files.