Exterior fade outline

Hi, I work on an outline post process. And i would like to know if it’s possible to make an exterior fade outline like this image. For this moment i use custom depth + post process outline, but i only get an interior outline without fade.

Thank you for your answers.

127735-outline.png