“Fade” borders in CSS

后端 未结 5 2035
盖世英雄少女心
盖世英雄少女心 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:25

    You could also use box-shadow property with higher value of blur and rgba() color to set opacity level. Sounds like a better choice in your case.

    box-shadow: 0 30px 40px rgba(0,0,0,.1);
    

提交回复
热议问题