El
Application Loading
Customization
Colors
Themes
Typography
Dashboard
Basic
Ecommerce
Finance
Navigation
Breadcrumbs
Navigation
Rail Navigation
Tab Panel
Forms
Autocomplete
Button Toggle
Buttons
Checkbox
Input
Number Input
Phone Input
Pin Input
Radio
Segmented
Select
Slide Toggle
Components
Alert
Announcement
Avatar
Badge
Block State
Bottom Sheet
Card
Card Overlay
Carousel
Chips
Color Picker
Command Bar
Comment Editor
Confirm
Content Fade
Data View
Datepicker
Dialog
Divider
Expand
Expansion Panel
Filter Builder
Gauge
Icon
Image Viewer
Incidents
Layout
List
Marquee
Menu
Paginator
Panel
Password Strength
Popover
Progress Bar
Progress Spinner
Resizable Container
Sidebar
Sidebar Widgets
Skeleton
Slider
Snackbar
Stepper
Suggestions
Table
Tabs
Thumbnail Maker
Timeline
Toolbar
Tooltip
Tree
Upload
Micro Charts
Bar Chart
Line Chart
Pie Chart
Auth
Create Account
Done
Forgot Password
Password Reset
Set New Password
Sign In
Sign Up
User Profile
Talent Profile
Account
Settings
File Manager
Overview
Pricing
Basic
Membership Plans
Content
Post List
Error Pages
Forbidden (401)
Not Found (404)
Server Error (500)
Service Pages
Pending Email Activation
IdenticonDiceBearhttps://www.dicebear.comhttps://creativecommons.org/publicdomain/zero/1.0/„Identicon” (https://www.dicebear.com) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)
Pavel Salauyou
Free
pavel.salauyou@mail.com
PS
Github

Content Fade

This Angular component is designed to hide large text by using a smooth transition from the text to the background color of the parent block as a gradient.

I usually use text reduction to shorten ... 3 points, which doesn't look very nice, content fade component allows to make a smooth transition from text to background, which looks much more professional than just trimming the dough.

The most useful use case for this component would be in table cells, but in general it can be used anywhere there is a lot of text.

Below are some examples of how to use it.

Basic content fade

By default, content hiding comes from both sides.

Content fade with custom width

With the width parameter you can increase the gradient, the value can be specified as a number of pixels (100px) or as a percentage (40%).

Content fade with custom position

With the position parameter you can define on which side to hide the text, you can use 3 options as a value: both, start, end.