Sorcerer's Isle

Open Source tools for software development


Scatter

Overview

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.

Documentation

License:
LGPL v3
Repository:
GitHub
Latest Release:
v0.1, 31 Mar 2020 (announcement)
Requires:
Any modern browser *

* 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.

Features

See the documentation for further information, configuration options, and examples of use.

Download

Package includes scatter.js plus demo files.