Jon on Nostr: Does anybody have a better way to do gradient border buttons (or boxes) with ...
Does anybody have a better way to do gradient border buttons (or boxes) with transparent background and flexible dimensions?
Here I'm using a strange-scaling SVG image as a mask over a gradient fill - it works and allows buttons of any width or size, but has a few too many "parts" for my liking.
https://codepen.io/jon/pen/yLrygwa
#CSS
P.S. border-image is not a solution here because it would distort the gradient.
Here I'm using a strange-scaling SVG image as a mask over a gradient fill - it works and allows buttons of any width or size, but has a few too many "parts" for my liking.
https://codepen.io/jon/pen/yLrygwa
#CSS
P.S. border-image is not a solution here because it would distort the gradient.