T
T
takinglimits2018-05-27 06:01:17
css
takinglimits, 2018-05-27 06:01:17

Is it possible to combine 2 backgrounds into one shape so that one non-overlapping shadow is applied to it?

Is it possible to:
5b0a1f12d339d595732526.jpeg
Make it:
5b0a1f2c87261177879287.jpegOnly by means of HTML/CSS?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Alekseev, 2018-05-28
@takinglimits

filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
to the parent of both

H
HamSter, 2018-05-27
@HamSter007

1. Such a crutch version of jsBin
2. An example with svg

<svg xmlns="http://www.w3.org/2000/svg" viewPort="0 0 500 500" width="100%" height="100%">
    <defs>
      <filter id="f1" x="-50%" y="-50%" height="200%" width="200%">
        <feOffset result="offOut" in="SourceAlpha" dx="0" dy="0" />
        <feGaussianBlur result="blurOut" in="offOut" stdDeviation="10" />
        <feBlend in="SourceGraphic" in2="blurOut" mode="normal" />
      </filter>
    </defs>

    <g filter="url(#f1)">
      <rect width="200" height="200" x="50%" y="50%" fill="#eee" style="transform:translate(-50px, -50px);"/>
      <circle r="100" cx="50%" cy="50%" fill="#eee" style="transform:translate(-50px, -50px);"/>
    </g>
</svg>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question