View Code? Open in Web Editor
NEW
This project forked from benhowdle89/adaptive-backgrounds
A JavaScript plugin for extracting the dominant color from images and applying the color to their parent.
Home Page: http://benhowdle89.github.io/Adaptive-Backgrounds/
License: MIT License
JavaScript 28.93%
CSS 39.79%
HTML 31.28%
adaptive-backgrounds's Introduction
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+
adaptive-backgrounds's People
Watchers