Need Help in creating this VFX in UE5

I need to create this vfx in UE5 Niagara but have no idea on how to go about it. do i need scratch pad modules for this . Can someone please help me understand how to go about it.

If your start and target are moving are static, you can use a spline. Then sample the spline in Niagara and use the sampled position to move your particles.

If your start and target are moving, it’s more tricky. Are they moving?