"Fog has to form at a certain relative humidity," explains Dayna Vettese, a meteorologist at The Weather Network. "In this case, the relative humidity and onshore flow were just perfect to create this kind of phenomenon."
Vettese explains that there is more friction over land than over water, which causes the air to slow down as it hits the land. This gives the air extra lift.
The air condenses further because the highrises on the beach are in the way, and is forced up and over the buildings.
"The fog sinks on the other side of the building, where there is lower relative humidity, which causes it to start to dissipate," she explains.
"It's pretty rare for it to happen this way, because you need all the atmospheric conditions to be just right," says Vettese, noting that the relative humidity just offshore was probably very high.