All Projects → benhowdle89 → Adaptive Backgrounds

benhowdle89 / Adaptive Backgrounds

Licence: mit
A JavaScript plugin for extracting the dominant color from images and applying the color to their parent.

Labels

Adaptive-Backgrounds

A JavaScript plugin for extracting the dominant color from images and applying the color to their parent.

Full docs & demo→

  • Simply set a data attribute on desired images and the plugin will apply the image's dominant color to it's parent element's background.
  • Caveat: Doesn't work with remote images if the respective server has CORS disabled, ie. it won't work with Flickr URLs...
  • Credit: Heavily inspired by jquery.adaptive-backgrounds.js - basically, it's the jQuery free version.
  • Browser support: IE9+
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].