Jump to main content

Nicolas Hoizey

  • articles
  • billets
  • links
  • notes
  • talks
  • archives
  • feeds
  • 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

    • Nicolas Hoizey
    • 23 November 2023
    • CSS, Grid, MDN
    • 4 reactions
    • permalink

    I wonder if MDN could add screenshots of the live examples, so people can see the result even if their browser doesn't support a feature yet.

    For example for CSS Grid masonry layout:
    https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout/Masonry_layout

    I'm using Firefox, so I had to activate the layout.css.grid-template-masonry-value.enabled flag to see the “good” result.

  1. screenshot of An Interactive Guide to CSS Grid

    Josh W. Comeau avatar Josh W. Comeau

    An Interactive Guide to CSS Grid

    • Nicolas Hoizey
    • 23 November 2023
    • CSS, Grid
    • 10 reactions

    In this tutorial, I'm going to share the biggest 💡 lightbulb moments I've had in my own journey with CSS Grid. You'll learn the fundamentals of this…

  2. screenshot of Complex MPA View Transitions

    Tyler Gaw avatar Tyler Gaw

    Complex MPA View Transitions

    • Nicolas Hoizey
    • 18 November 2023
    • View Transitions, CSS, animation
    • 4 reactions

    Worth mentioning again that this is just CSS with a touch of HTML. Also worth pointing out that very little of this is specific to CSS view transitions.…

  3. screenshot of View transitions and stacking context: Why does my CSS View Transition ignore z-index?

    Nic Chan avatar Nic Chan

    View transitions and stacking context: Why does my CSS View Transition ignore z-index?

    • Nicolas Hoizey
    • 30 October 2023
    • View Transitions, CSS
    • 7 reactions

    Paint order, the order in which your elements are painted, cannot be easily calculated without applying a complex algorithm, especially since many…

  4. screenshot of OKLCH in CSS: why we moved from RGB and HSL

    Andrey Sitnik avatar Andrey Sitnik and Travis Turner

    OKLCH in CSS: why we moved from RGB and HSL

    • Nicolas Hoizey
    • 29 September 2023
    • CSS, color
    • 1 reaction

    By moving to OKLCH today, we’re preparing ourselves for the not-so-distant future where native color modification will be available in CSS. OKLCH…

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

Mastodon