Reminds me of a demonstration of a fire extinguisher I was shown by a West Indian guy when I was in the RAF. To demonstrate a foam extinguisher he put the two ingredients in a bottle and shook them together, to simulate what happens in the extinguisher.
The ingredients once mixed froth up to produce masses of foam. This foam expanded and shot out of the bottle all over him, at which point he put his hand over the top to stem the flow, this caused it to spray everywhere.
All in all and excellent demo. I can still hear him saying "son of a B**ch"