Particles and animated materials

Hi there! I would like to have particles that are bright when emitted using an emission shader and gradually fade away until they disappear. Just like sparks out of a sparkler or a firework. I can’t figure out how it’s done. I try animating the strength of the emission shader, but it affects all particles at the same time independently from their individual emission from the emitter. Could someone help me please?

I’ve just found a possible answer to my query. Cheers!