Skip to content

benhowdle89/Adaptive-Backgrounds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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+

About

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

Resources

License

Stars

245 stars

Watchers

10 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors