Invisible ink maybe?
https://en.wikipedia.org/wiki/Invisible_inkIn fact, invisible ink is more difficult than "fading away", since the ink is revealed under special conditions.
Also known are inks that are clearly visible at writing but fade away later.
UV light, oxygen from air could achieve it, or humidity, or CO
2 - to neutralize a base that colours phenolphthaleine.
Or your pigment could evaporate fully - not obvious, since long conjugated organic molecules aren't so volatile, and metallic ions neither. Evaporate a compound that colours an other one, like an amine and a pH indicator?
Or just a slow reaction among the pigment's component, but then the user would have to mix them just prior to use (at least, logically). Or a reaction between the pigment and the substrate.