I'd love to know how to make this transparent but keep the "borders" & animation...
border-image to create the borders here: http://cdpn.io/eJmfK
That solution faces two pitfalls:
border-image is not an animatable property, and rounded corners requires the use of a wrapper element with overflow set to hidden.
Other solutions on my mind:
- Using pseudo-elements could theoretically work, but I'm not sure adjusting their z-index so the pseudo element is behind it's parent will work.
- Make use of the same technique used in this pen, multiple background images. In theory, having one gradient for each side of the border should allow the background to be transparent.
Forked from Declan de Wet's Pen Gradient Border Button.
This Pen is a fork of Declan de Wet's Pen Gradient Border Button.