Skip to content
All Challenges
#95

CSS Mask Image (Linear Gradient)

Hard
Category: Modern CSS

Fade out bottom text using mask-image: linear-gradient(to bottom, black 50%, transparent 100%) on .fade-mask.

Target HTML in preview:
<div class="fade-mask"><p>Content fading into transparency at the bottom...</p></div>
Verification Criteria:
Set mask-image: linear-gradient(to bottom, black 50%, transparent 100%)
styles.css
Live Evaluation
Loading...
|
Live Browser Output
Sandboxed Preview