Paning a camera depending on the position of your mouse

I want to have a website where if you move ur camera to the right, the camera pans to the right, giving the effect that you are kind of looking at something and can control your virtual eyes if this makes sense. Thanks

Mike