Soft Edges using CSS?

前端 未结 3 1904
我在风中等你
我在风中等你 2021-02-05 02:50

I am using RGBA to create a transparent background that overlays on top of an image. Works just fine. My questions is this: Is there a way to \"soften\" the edges of the box to

3条回答
  •  轮回少年
    2021-02-05 03:32

    You can use CSS gradient - although there are not consistent across browsers so You would have to code it for every one

    Like that: CSS3 Transparency + Gradient

    Gradient should be more transparent on top or on top right corner (depending on capabilities)

提交回复
热议问题