Curved sides in CSS3

I am working on a website with a completely unique slide show ...

h2Su1xe.png

As you can see, the top of the image should be curved in a weird way, and then blend in with the background. Currently, it is simply configured as an overlay <div>that lines up with the main background image, but as the site responds, everything becomes funky at certain resolutions.

Can CSS be used to accomplish the same effect? I experimented with the radius of the border, but I'm not sure if this is possible. I would even be happy if it were not 100% cross-browser, as it could degrade to a simple edge.

Thanks.

+4
2

SVG .

, SVG , "" ( top), . bg- .

100%: http://jsfiddle.net/fmpeyton/NuneR/

: 100% , , "" . FF, JSfiddle. - /.

, .

Edit:

, / . , :

/ , , , .

+7

css 3:

transform:rotate(10deg);
border-radius:7px;
box-shadow:4px 5px 6px #DDD;

. .

0

Source: https://habr.com/ru/post/1527579/


All Articles