Как можно правильно расположить маску CSS относительно границ ее элемента? ⇐ CSS
Как можно правильно расположить маску CSS относительно границ ее элемента?
In this example, I want the transparent circular cutout to appear as a cut out half circle on the left (and vertical center) of the green box.
div { background: green; mask: radial-gradient(20px, transparent 100%, black); mask-position: left center; } body { background: pink; }
Источник: https://stackoverflow.com/questions/781 ... ent-bounds
In this example, I want the transparent circular cutout to appear as a cut out half circle on the left (and vertical center) of the green box.
div { background: green; mask: radial-gradient(20px, transparent 100%, black); mask-position: left center; } body { background: pink; }
Источник: https://stackoverflow.com/questions/781 ... ent-bounds
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Как я могу расположить объект в центре экрана относительно области просмотра в CSS?
Anonymous » » в форуме CSS - 0 Ответы
- 26 Просмотры
-
Последнее сообщение Anonymous
-