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
https://monosnap.com/file/7vDIIZVotdnYM6eQuA6RoSpwTlDUYU
and that’s how it looks with those nodes https://monosnap.com/file/sm0RZsXXLAf4btmwXwgwYwqw5nbUsP

https://monosnap.com/file/lo5pLTdmFVvFjRSTRaZs1Gx0WZPowH