jQuery Flashlight Effect


#1

I am looking for a jQuery plugin or code that will allow me to create a sort of flashlight effect. To clarify, I want some dark colored sections on a site that when hovered over with the cursor a sort of faded light area appears that allows the user to see underlying images. Like shining a flashlight into the dark and moving it around. If anyone can point me in the right direction that would be so awesome! Thanks!


#2

Would be so simple using regular javascript… why does it have to be jquery?


#3

Stack Overflow got to this first, I had posted the same question there. Here’s the plugin just in case anyone else is looking for such a thing. http://www.dynamicdrive.com/forums/showthread.php?t=62822.

Thanks!


#4
Endat said

Would be so simple using regular javascript… why does it have to be jquery?

JavaScript or jQuery, it would not matter either way I guess. I just thought maybe there was a jQuery plugin already written somewhere, so I said jQuery. If you have a JavaScript solution in addition to the one I posted above I’d love to see it. Thanks!