I’ve been playing around with blocking out other divs on button press, and Block UI is a very nice tool, however it creates rectangular blocks around divs which doesn’t really look good, so I was wonering if it was possible to do a “field of view” type block with jquery like the one in the image below.

Thanks so much 🙂
This is simply a matter of making an alpha masked image (png). They key is to avoid making it jumbo size to cover the whole page. Instead make a frame of opaque (or more opaque) divs surrounding the png of the “hole”.
This way, your image does not have to be huge and you can adjust to any screen size automatically. The parent div would be of width/height 200%, or if you want to get fancy, you could simply have the height/width be 100%, and use some fancy math in JS to dynamically size the divs as the port moves.
See my answer to a similar question here:
CSS see through porthole