Ana Tudor 🐯 on Nostr: #tinyCSStip Ever want to mask something out of an element, but not cut out blur or ...
#tinyCSStip
Ever want to mask something out of an element, but not cut out blur or box-shadow or a pseudo outside the element's border box?
Well, subtract whatever you want masked out from a fully opaque layer with `mask-clip` set to `no-clip`!
mask:
conic-gradient(red 0 0) no-clip subtract,
var(--masked-area)
nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpq9qceztjxtkkj8qd6d5x0ya3r9whzyu9yljdv0f6jw8y8v704dxmq3xnmhh (nprofile…nmhh) demo: https://codepen.io/thebabydino/pen/MYggKre
#CSS #cssMask #code #coding #frontend #web #dev #webDev #webDevelopment
Ever want to mask something out of an element, but not cut out blur or box-shadow or a pseudo outside the element's border box?
Well, subtract whatever you want masked out from a fully opaque layer with `mask-clip` set to `no-clip`!
mask:
conic-gradient(red 0 0) no-clip subtract,
var(--masked-area)
nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpq9qceztjxtkkj8qd6d5x0ya3r9whzyu9yljdv0f6jw8y8v704dxmq3xnmhh (nprofile…nmhh) demo: https://codepen.io/thebabydino/pen/MYggKre
#CSS #cssMask #code #coding #frontend #web #dev #webDev #webDevelopment