kennethcachia / background-check

Automatically switch to a darker or a lighter version of an element depending on the brightness of images behind it.
http://kennethcachia.com/background-check/
MIT License
3.27k stars 281 forks source link

Color detection on mousemove() #37

Closed BeatLaG closed 10 years ago

BeatLaG commented 10 years ago

Hi Kenneth!

I´m planning to implement your great plugin into a new project. And I was thinking about to trigger the color detection to the mouse move event in order to use it for a slideshow.

What do you think? Would the plugin manage correctly all the process for the mouse event? It could be similar to handle it with the scroll one in performance terms, more or less, right?

Just let me know, please :)

In any case, this plugin is really fantastic, I really love it. I use it for everything now, for my sites, for opening the fridge, when my wife tells me something I don´t want to hear... for everything! XD

Thx!

kennethcachia commented 10 years ago

Haha glad to hear that :)

Yes, it should work fine but it's not something that I recommend. I'm curios though, why would you want to trigger a refresh on mouse move?