Multi-line Text Fading
How do I make an multi-line text fading?
A demonstration of multi-line text fading with CSS and repeating linear gradients.. What is a multi-line text fading? How do you make a multi-line text fading? This script and codes were developed by Joey Hoer on 14 September 2022, Wednesday.
Multi-line Text Fading - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Multi-line Text Fading</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ h1 { color: #fee7f7; line-height: 1.2; position: relative; overflow: hidden; font-size: 2.75em; display: inline-block;
}
h1:after { content: ''; background-image: repeating-linear-gradient(rgba(196, 8, 140, 0), rgba(196, 8, 140, 0) 0.3em, rgba(196, 8, 140, 0.65) 0.9em, rgba(196, 8, 140, 0.8) 1.2em); display: block; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
}
@supports (-webkit-background-clip: text) { h1 { -webkit-background-clip: text; text-fill-color: transparent; background-color: #fee7f7; background-image: repeating-linear-gradient(rgba(196, 8, 140, 0), rgba(196, 8, 140, 0) 0.3em, rgba(196, 8, 140, 0.65) 0.9em, rgba(196, 8, 140, 0.8) 1.2em); } h1:after { display: none; }
}
body { background-color: #c4088c;
}
/* Center */
html, body { height: 100%;
}
html { display: table; width: 100%;
}
body { display: table-cell; vertical-align: middle; text-align: center;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <h1>Multi-line<br/>Text Fading</h1>
</body>
</html>
Multi-line Text Fading - Script Codes CSS Codes
h1 { color: #fee7f7; line-height: 1.2; position: relative; overflow: hidden; font-size: 2.75em; display: inline-block;
}
h1:after { content: ''; background-image: repeating-linear-gradient(rgba(196, 8, 140, 0), rgba(196, 8, 140, 0) 0.3em, rgba(196, 8, 140, 0.65) 0.9em, rgba(196, 8, 140, 0.8) 1.2em); display: block; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
}
@supports (-webkit-background-clip: text) { h1 { -webkit-background-clip: text; text-fill-color: transparent; background-color: #fee7f7; background-image: repeating-linear-gradient(rgba(196, 8, 140, 0), rgba(196, 8, 140, 0) 0.3em, rgba(196, 8, 140, 0.65) 0.9em, rgba(196, 8, 140, 0.8) 1.2em); } h1:after { display: none; }
}
body { background-color: #c4088c;
}
/* Center */
html, body { height: 100%;
}
html { display: table; width: 100%;
}
body { display: table-cell; vertical-align: middle; text-align: center;
}
Developer | Joey Hoer |
Username | joeyhoer |
Uploaded | September 14, 2022 |
Rating | 3.5 |
Size | 3,580 Kb |
Views | 32,384 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Example SVGZ Data URI | 2,981 Kb |
Fighting the Space | 2,677 Kb |
Dizzy Disks | 2,731 Kb |
Responsive Text with Viewport Units | 65,818 Kb |
3D Text | 3,862 Kb |
Perforated Leather Background | 1,723 Kb |
Flexible Rounded Hexagons | 3,463 Kb |
Flexagons | 5,023 Kb |
CSS Preloader Animations | 10,383 Kb |
Lightpack | 4,028 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Mobile first social buttons with no iframe | Alistairtweedie | 3,158 Kb |
Ipad Mini Showcase | Hornebom | 10,479 Kb |
Pure CSS read more toggle | Idered | 2,344 Kb |
Sexy Social Buttons | Ipiyale | 2,226 Kb |
Canvas Background Effect | Sonick | 3,513 Kb |
Scroll to view if element partially out of view port height | ChrisMaki | 2,104 Kb |
Responsive Minimal Blog Layout | Hackthevoid | 5,261 Kb |
Drop Cap | Gsaiki | 1,571 Kb |
SVG Animation | Pollardld | 3,133 Kb |
Super Discount | Orrinward | 3,225 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!