Recently, I came across this interesting website with a background that lights up depending on the movement of your mouse. I was wondering if there is a way to make that illuminated spot move around on its own. If you want to see how it looks, check out the following CodePen link: https://codepen.io/anon/pen/MGoxNr
I hope the description gives you a clear idea of what's happening.
Also, here is a live website where this effect is implemented: . Feel free to visit it for reference.
function onDocumentMouseMove(event) {
mouseX = ( event.clientX - windowHalfX ) * 10;
mouseY = ( event.clientY - windowHalfY ) * -10;
}