Match Media example

Try resizing your browser to see some changes. Once you hit 700px you should see a message.

If you only want to change things if the window go above or below 700px, this is often the better solution than a window event listener for resize

Back to matchMedia blog post with more info