Adobe Web Platform Team
background-blend-mode
property. It is not supported in this browser. Learn how to get a capable browser.
simple alpha compositing
blend-mode: overlay
background-blend-mode
property. It is not supported in this browser. Learn how to get a capable browser.
simple alpha compositing
blend-mode: overlay
source
backdrop
blended result
/* blend background images of the same element */
.element {
background: url(image1.jpg), url(image2.jpg);
background-color: rgba(215, 120, 25, 0.7);
background-blend-mode: overlay;
}
/* blend heading with container */
h2 {
mix-blend-mode: difference;
}
.container {
background-image: url(texture.png);
}
W3C Candidate Recommendation - Adobe, Canon
clip-path: circle(25% at 50% 50%);
-webkit-clip-path
property. It is not supported in this browser. Learn how to get a capable browser.
clip-path: ellipse(50% 40% at 50% 50%);
-webkit-clip-path
property. It is not supported in this browser. Learn how to get a capable browser.
clip-path: polygon(nonzero, 955px 405px, 483px 212px, 1px 400px, 0px 500px, 956px 500px);
-webkit-clip-path
property. It is not supported in this browser. Learn how to get a capable browser.
.element {
-webkit-clip-path: url(#clipping);
}
<svg>
<clipPath id="clipping">
<circle cx="50" cy="50" r="10"/>
</clipPath>
</svg>
.element {
/* use an image as a mask */
mask-image: url(mask.png);
}
.element {
/* use a <mask> element as mask */
mask-image: url(#mask);
}
<svg>
<mask id="mask">
<circle cx="50" cy="50" r="10"></circle>
</mask>
</svg>
W3C Working Draft - Adobe, Mozilla, Google
/* wrap the content inside a circle */
#content {
shape-inside: circle(10em at 50% 50%)
}
#coffee {
float: left;
shape-outside: circle(10em at 50% 50%);
}
.content{
/* shape defined by points of a polygon */
shape-inside: polygon(x1, y1 x2, y2 ... );
}
.content{
/* shape defined by the transparency of an image */
shape-inside: url(image.png);
shape-image-threshold: 0.5;
}
W3C Candidate Recommendation - Adobe, Microsoft
CSS Blending
CSS Masking
CSS Shapes