Sometimes there is foam in the wrack. I don’t know how it forms; I guess it happens offshore during big storms. This foam differs from normal sea foam which disperses quickly. This foam sticks together and can form piles or long snakes like this. Sometimes rafts of foam are seen floating just offshore in the breakers. On the beach, foam glides with the breeze, on a thin film of water.