How to make a CSS border gradient with transparent background?

if you want to make border look “transparent” then why use “border”?!