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++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -