Dies ist die Abmessungen, die ich oben
< /code>
CSS: < /p>
Code: Select all
.image-container {
position: relative;
width: 688px;
height: 800px;
}
.masked-image {
width: 100%;
height: 100%;
object-fit: cover;
clip-path: path('{{ Same path data as the Tailwind link above, StackOverflow just has a character limit. }}');
}
< /code>
Wie oben erwähnt, habe ich auch versucht, dies auf etwas andere Weise zu bearbeiten: < /p>
HTML: < /p>
[img]https://images.unsplash.com/photo-1691687824517-a62cfdef9c6e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHx[/img]
d="{{ Same path data as the Tailwind link above, StackOverflow just has a character limit. }}"/>
< /code>
CSS: < /p>
.image-container img {
clip-path: url(#svg-mask);
}