can you make a section of a div transparent and affect its box-shadow

跟風遠走 提交于 2019-11-30 16:44:56
Temani Afif

You can use the drop-shadow filter:

body {
  background: yellow;
}

.shape {
  width: 500px;
  height: 75px;
  background: radial-gradient(circle at 50% 100%, transparent 49px, black 50px);
  filter:drop-shadow(0 0 10px green);
}
<div class="container">
  <div class="shape"></div>
</div>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!