Metaball smoke fade away

Hi everyone.
I’m doing a smoke simulation with metaballs.
Is there a way to make the particles(metaballs in my case) fade away at the end of the life cycle instead of just disappear?

Hi, try playing with this node tree:

thanks) apparently I’m doing something wrong. here’s how it looks with my shader
and that’s how it looks with those nodes