The bizarre "scintillating grid illusion"

As you scan your eyes over this grid, black dots seem to appear in the periphery of your focus. But they disappear and are replaced by white dots when you look directly at them. Why does it do this? Scientific theories abound, but the real answer is no one knows.