Anonymous
Как сделать CSS-клип-пат, есть округлые углы?
Сообщение
Anonymous » 07 фев 2025, 21:16
Как можно добавить округлые углы к этому пути клипа в форме шестигранника? >
Код: Выделить всё
.parent {
clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%);
}
img {
aspect-ratio: 1/1.15;
height: 100%;
width: 100%;
}< /code>
[img]https://images.unsplash.com/photo-1738762390183-c18525eb3f8e?w=800&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxmZWF0dXJlZC1waG90b3MtZmVlZHwyMnx8fGVufDB8fHx8fA%3D%3D[/img]
Подробнее здесь:
https://stackoverflow.com/questions/794 ... ed-corners
1738952165
Anonymous
Как можно добавить округлые углы к этому пути клипа в форме шестигранника? > [code].parent { clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%); } img { aspect-ratio: 1/1.15; height: 100%; width: 100%; }< /code> [img]https://images.unsplash.com/photo-1738762390183-c18525eb3f8e?w=800&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxmZWF0dXJlZC1waG90b3MtZmVlZHwyMnx8fGVufDB8fHx8fA%3D%3D[/img] [/code] Подробнее здесь: [url]https://stackoverflow.com/questions/79421807/how-to-make-css-clip-path-have-rounded-corners[/url]