The effect is made with Unity's Visual Effect Graph. This is an overview of the entire graph.
Each particle will move from its current position to a randomly given position.
This is how each particle gets initialized.
Each particle will rotate from its current angle to a random angle.
This is how the particles are rendered.