QuizNot attempted
clip-path vs mask-image
1–4 to choose, Enter to submit
Show answer & explanation
Correct answer:
mask-image: linear-gradient(to bottom, black 50%, transparent)
mask-imageuses an image or gradient as an alpha channel, so a gradient totransparentgives a soft fade.- Not clip-path: it makes hard vector cuts, pixels are fully in or out.
- Not opacity: 0.5: it fades the whole element uniformly, not just the bottom.
- Not overflow: hidden: it hard-crops overflowing content with no fade.