If you live in the United States, then it is probably the bubbles of the Spittle Bug that you are seeing. This tiny green grub-like bug lives in a nest of bubbles somewhere along the joints of plants. Though they look icky, they cause no harm :)
Rabies
butterflies need the stuff in the flowers
Plant foaming and polymer foaming
Oil foaming can be caused by several factors, such as water contamination, high oil levels, or mechanical issues in the engine. When water mixes with oil, it can create foam due to the agitation of the oil. High oil levels can also lead to foaming as the oil churns excessively. Mechanical issues, such as a malfunctioning oil pump or excessive air entering the system, can also cause foaming. It is important to address the root cause of the foaming to prevent damage to the engine.
Most likely cause is that is was poisoned. Or a respiratory problem.
From first hand experience, foaming hand soap will work in a non-foaming dispenser. Although the soap will come out as regular soap, not foam. The foaming soap will work as regular soap, just not foaming soap.
A foaming mouth could indicate rabies or distemper. Rabies can kill in a week or two so it is best to go to a doctor or emergency room and have the wound cleaned and begin the series of rabies vaccinations.
Foaming at the mouth in cats after giving them Cerenia may be a sign of an adverse reaction to the medication. It is important to consult with a veterinarian immediately to determine the cause and provide appropriate treatment for your cat.
Foaming is the present participle of foam.
Foaming is a chemical phenomenon.
Regular liquid soap may not work well in a foaming dispenser as it may not produce the same foaming effect as foaming soap. Foaming soap is typically diluted and has a specific formula designed to work with the foaming mechanism of the dispenser. Using regular liquid soap may clog or damage the foaming mechanism over time.
simethecone and other non-foaming detergents are good anti-foaming agents.