Getting Started
Overview
Installation
Theme
Forms
Basic Inputs
Select
Custom Inputs
Components
Navigation
Components
69
Micro Charts
Libraries
Kanban Board
Image Designer
Video Player
Visual Builder
Content Editor
Data View
Latest npm version of @ngstarter-ui/componentsWeekly npm downloads of @ngstarter-ui/components
Purchase

Content Fade

Content Fade is a visual gradient-mask wrapper that suggests content continues beyond the visible area. Use it on clipped or scrollable previews when an edge should fade out instead of ending abruptly.

Use it for:
  • Fading horizontal preview text, teaser rows, chips, compact lists, or cropped inline content.
  • Showing a soft visual cue at the start, end, or both sides of an already constrained area.
  • Matching the gradient color to the parent background with color.
  • Adjusting the gradient size with width.

Content Fade does not manage overflow, scrolling, expansion, or truncation by itself. Put it inside a container that sets the width, height, scroll behavior, or overflow-hidden. Do not use it for loading skeletons, collapsed content logic, tooltips, pagination, modal clipping, ellipsis truncation, or long article reading.

PropTypeDefault
color
Custom color for the fade gradient
string
width
Custom width for the fade effect
string
position
Position of the fade effect
'both' | 'start' | 'end'both