jquery - How to change a portion of Body background-color on mousemove? -


i want similar paint, when color page on mouse moving. did first :

 <script>     $(document).mousemove(function(event){     var cordx = event.pagex;     var cordy = event.pagey;     $("<div></div>").addclass("circle").appendto("body").css({'top':cordy,'left':cordx});     })    </script> 

https://jsfiddle.net/4o1xkp3d/1/

but spamming body many <div> not eficient method. think can achieve same result if color portion of pixels on body background when move mouse cursour.of course, @ moment don't know how continuously change body background-color couple of pixel size on specific position relative mouse cursour. ideas?


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -