Taper/fade CSS box shadow?

后端 未结 1 1493
[愿得一人]
[愿得一人] 2020-12-28 23:09

I\'ve got a CSS drop down menu that I\'m trying to build, and the background of the drop down has a faded/tapered box shadow:

相关标签:
1条回答
  • 2020-12-29 00:00
    1. I've added a before element.
    2. gave it a gradient background (from transparent to a semi transparent black) to achieve the top to bottom fade.
    3. gave it an inset box shadow to achieve the in -> outfade.

    Take a look -> http://jsfiddle.net/f9aKR/22/

    Edit the amount of fade/colors as you want.

    0 讨论(0)
提交回复
热议问题