Using CSS3 I am applying a mask to a full width image where the mask is:
The HTML is:
<div class="mask">
<img src="/photograph.jpg" />
</div>
And the CSS is:
div.mask {
clip-path: path("M97.334,22.095C145.038,35.826 185.29,39.814 173.036,97.797C164.397,138.676 139.115,173.499 97.334,173.499C55.553,173.499 32.012,138.269 21.632,97.797C4.332,30.339 39.904,5.566 97.334,22.095Z");
}
div.mask img {
width: 100%;
}
This mask is only 160x160px.
Then I tried to apply a mask with 2800px width to fill all screen:
But when I run it my image disappears instead of being masked.
Am I missing something?