“Fade” borders in CSS

后端 未结 5 2040
盖世英雄少女心
盖世英雄少女心 2020-12-24 07:07

I\'m using border-left: groove on an element but I want the border to \"fade\" into the background as it\'s about to end at the bottom.

I hope I\'m mak

5条回答
  •  不知归路
    2020-12-24 07:28

    How to fade borders with CSS:

    Text

    Please excuse the inline styles for the sake of demonstration. The 1 property for the border-image is border-image-slice, and in this case defines the border as a single continuous region.

    Source: Gradient Borders

提交回复
热议问题