Original code: Imran Siddiq, (Web Squadron on YouTube)
Modified to add fade effect.
Description:
This code implements a text truncation feature perfect for long content descriptions. It adds a "Read More/Less" toggle button that, when clicked, smoothly expands or collapses the text. The modification includes a gradient fade effect for the last few lines of truncated text, providing a more polished user experience. This solution is particularly useful for Elementor text widgets where you need to make long descriptions more manageable without compromising readability.
Key Features:
- Smooth expand/collapse transition
- Gradient fade effect for truncated text
- Compatible with Elementor text widgets
- Clean, responsive design
- Easy to implement
Comments