How to make a smooth transparency?

How to make such animation https://meetwalter.com https://jsfiddle.net/rsts3dye/2/ ?
So depending on the cursor position change the transparency ? And the object completely disappeared in the second case.
June 27th 19 at 15:21
1 answer
June 27th 19 at 15:23

Find more questions by tags AnimationCSSFrontendHTMLJavaScript