I don’t think this is a fungus.
More likely it is the remains of a predated amphibian.
I also don’t think it’s a fungus and I also don’t think it’s something from an amphibian… and if it is, it’s very different from my country, look at the ”foam” that a frog leaves

[attachment=1]ninho-de-espuma-ovos-rãs-flutuando-nas-águas-superficiais-imagem-do-dos-208368497.jpg[/attachment]

[attachment=0]6221334866_5f1dfdf434_b.jpg[/attachment]