Water foam on the edges?

I have a quite simple request. I need to make a foam when my water material collides with a mesh…
For example:
hqdefault.jpg

Can’t seem to find anything on this topic on Youtube so I’m hoping experts here know the solution =)

Cheers