Skip to content

QuizNot attempted

clip-path vs mask-image

You want text to fade softly to transparent at the bottom. Which property?
1–4 to choose, Enter to submit
Show answer & explanation

Correct answer:

  • mask-image: linear-gradient(to bottom, black 50%, transparent)
  • mask-image uses an image or gradient as an alpha channel, so a gradient to transparent gives 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.