All Challenges
#95
CSS Mask Image (Linear Gradient)
HardCategory: 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 EvaluationLoading...
|
Live Browser Output
Sandboxed Preview