Real Foam Shader
Does it work on Eevee?
You can only get a correct result in Cycles.
Does the shader work in liquid simulations?
It is not specifically designed for liquid simulations, as it can require a lot of resources from your computer. However, there are creators who have used it for animations with good results.