To get a photo like this, you would get someone to have a sparkler in their hands that is lit, while you take a photo of the sparks up close. you would want to have your shutter speed quicker so that you could get the individual little sparks and not just one big blur of a light.