Jump to main content

Nicolas Hoizey

  • articles
  • billets
  • links
  • notes
  • talks
  • archives
  • about

Kilian Valkhof avatar Kilian Valkhof

My take on fading content using transparent gradients in CSS

  • Nicolas Hoizey
  • 19 January 2024
  • CSS
  • 9 reactions
Screenshot of “My take on fading content using transparent gradients in CSS”

https://polypane.app/blog/my-take-on-fading-content-using-transparent-gradients-in-css/

So that's two ways to fade text content. mask-image is a little more flexible, but background-clip is a little more widely supported. Both are great ways to fade text content, and I hope you can use them in your projects!

9 reactions

7 likes

  1. cute dogo avatar
  2. Stefan Krieger ???? avatar
  3. aarontgrogg avatar
  4. Colin avatar
  5. ༒ ɐɥɔǝʇɐɯ ʍǝɹpuɐ ༒ avatar
  6. Richard the Brave avatar
  7. RealET avatar

2 reposts

  1. Kilian Valkhof avatar
  2. RealET avatar
  • Older: Where have all the flowers gone?
  • Newer: Platform Tilt: Documenting the Uneven Playing Field for an Independent Browser Like Firefox

Related contents with similar topics

  1. screenshot of Our CSS isn’t opinionated enough

    Craig Abbott

    Our CSS isn’t opinionated enough

    • Nicolas Hoizey
    • 2 November 2026
    • CSS
    • 4 reactions

    We’ve built and pushed a “best practice” way of working where appearance and semantic meaning are completely decoupled. Then, we’re weirdly surprised…

  2. screenshot of A select should tell you something

    Ahmad El-Alfy

    A select should tell you something

    • Nicolas Hoizey
    • 2 November 2026
    • HTML, CSS, UX
    • 2 reactions

    We finally can style a select. The bigger change is what an option can hold. Until now, an option was one line of plain text, so everything a person…

  3. screenshot of Alignment in CSS Grid Lanes

    Patrick Brosset avatar Patrick Brosset

    Alignment in CSS Grid Lanes

    • Nicolas Hoizey
    • 13 October 2026
    • CSS, Grid Lanes
    • 5 reactions

    […] here is the really interesting part, aligning individual items along the stacking axis. At first sight, this might seem surprising. After all,…

  4. screenshot of Controlling when CSS custom property values are computed

    Jake Archibald avatar Jake Archibald

    Controlling when CSS custom property values are computed

    • Nicolas Hoizey
    • 15 September 2026
    • CSS
    • 2 reactions

    When and how CSS custom property values are calculated might not be what you expect, and it has a big impact on your styles.

  5. screenshot of Scroll-Driven Animations

    Josh W. Comeau avatar Josh W. Comeau

    Scroll-Driven Animations

    • Nicolas Hoizey
    • 30 April 2026
    • CSS, animations
    • 4 reactions

    The CSSWG deserves a lot of credit, in my opinion, for repurposing/extending CSS keyframe animations for scroll-driven animations. Rather than invent…

If you want to share an error or suggest an enhancement of this content, please edit the source on GitHub.

© Nicolas Hoizey

Built with Eleventy