multiple mask-radial support #18399
-
I am trying to apply two mask-radial styles to my image component of next.js. Sadly only the last one get picked so my solution was adding the images two times with different masks applied. <Image
src={productCardBg}
alt="Card background"
fill
sizes="(max-width: 1024px) 100vw, 50vw"
className="mask-radial-[10rem_10rem_at_top_right,rgba(0,0,0,0.8)_0%,rgba(0,0,0,0.4)_50%,rgba(0,0,0,0.1)_80%,transparent_100%] object-cover"
/>
<Image
src={productCardBg}
alt="Card background"
fill
sizes="(max-width: 1024px) 100vw, 50vw"
className="mask-radial-[10rem_10rem_at_bottom_left,rgba(0,0,0,0.8)_0%,rgba(0,0,0,0.4)_50%,rgba(0,0,0,0.1)_80%,transparent_100%] object-cover"
/> Any suggestions on how to do this with just a single image? I just browsed the docs and found this about it in the docs: Combining masks seems like this is not possible until yet. Can we add this as feature request? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You should be able to set multiple |
Beta Was this translation helpful? Give feedback.
You should be able to set multiple
mask-image
values using amask-[]
arbitrary value class: https://play.tailwindcss.com/0M2vT73zwC