Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Ellipse Pseudo element shadow css

I am trying to add shadow to my pseudo-element but in vain. Tried many articles but still not working. My code:

.ug-slick .slick-slide {
            width: 800px;
            height: 500px;
        }
        .ug-slick::after {
            content: "";
            position: absolute;
  bottom: 8px;
  right: -5%;
  left: -5%;
  height: 60px;
  width: 110%;
  background: #F2F2F2;
  -webkit-clip-path: ellipse(100% 50% at 100% 50%);
  clip-path: ellipse(70% 50% at 50% 50%);
  box-shadow: 0px 10px 5px black;
        }
<div class="ug-slick">
</div>

Please help.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Because of the clip-path property you are ‘clipping’ a part of the visuals off, including the shadow.
Is the shape you have now the shape you want to achieve? maybe you could use border-radius instead of clip-path to create that shape.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading