Is There A Way To Escape Clip-path: From Child Elements? I.e Images Positioned Relative To The Clipped Background, Also Get Clipped
I am trying to position an SVG image over a clipped background that parallaxes over another background. I want the SVG to be half over the background and half over the foreground,
Solution 1:
You need to consider another alternative as clip-path
will clip the element and all its content.
Since it's about background, you can rely on gradient like below to create a similar effect.
.content {
height: 300vh;
min-height: 150vh;
background:
/*a triangle shape offested by 50px from the top taking 25% of the height*/linear-gradient(to bottom right,transparent 49.8%,#25282A50%) 050px/100%25%,
/*fill the remaining (75% - 50px) with solid color*/linear-gradient(#25282A,#25282A) bottom/100%calc(75% - 49px);
background-repeat:no-repeat;
}
<divclass="content"></div>
Post a Comment for "Is There A Way To Escape Clip-path: From Child Elements? I.e Images Positioned Relative To The Clipped Background, Also Get Clipped"