Check out this jQuery witchcraft: set BG color based on image colors


#1

!https://raw.github.com/briangonzalez/jquery.adaptive-backgrounds.js/master/misc/ab.gif!

http://briangonzalez.github.io/jquery.adaptive-backgrounds.js/


#2

:open_mouth: that’s absolutely brilliant!


#3

woooooooow!!! :slight_smile:


#4

Thanks a lot for the link! :slight_smile:

I would be curious to see how this would handle 50 images at once though… I my latest theme i’m using PHP to do the same thing (in the backend to avoid any performance issues on the front), but it throws some errors for certain users, as it needs allow_url_open to be true… So a frontend solution would come in handy.


#5

Really cool! This reminds me of another plugin which changes an element’s colour based on the colour of the underlying background / element.


#6

This is amazing! The potential of this is huge for portfolio themes :slight_smile: