I really like how they created online agario. I thought, "How did they create this ripple effect for the edges?"

There are a few things I could think of:
1) The border consists of many vector points, so it allows flexible animation of the border.
2) A border is a predefined gif animation.
3) There are a lot of invisible pixels on the edge. They rotate around the arc and activate several groups of these pixels, so they create the illusion that the border is “compressed” and “removed”.
How can this be done in HTML5 canvas? Do you think that one of my three ideas for the solution is applicable or more complicated?
source
share