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 |
CSS Preloader Animations | 10,383 Kb |
Admit Two | 2,343 Kb |
Fighting the Space | 2,677 Kb |
Flexible Rounded Hexagons | 3,463 Kb |
Dizzy Disks | 2,731 Kb |
SMPTE Color Bars | 89,133 Kb |
HR Department | 7,589 Kb |
Fluid Hexagonal Grid | 4,453 Kb |
Mirrored Background | 3,114 Kb |
CSS Middle Child Selector | 3,337 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 |
Zeichensatz | Moklick | 2,058 Kb |
Multi column experiment. | Spylefkaditis | 2,805 Kb |
Main page display | BarryKe | 4,562 Kb |
Transitioning application screens with semantically named classes | Djgrant | 3,697 Kb |
A Pen by Jess | Jessamyne | 5,100 Kb |
Portfolio Layout Flex | Lahvjal | 3,489 Kb |
FCC - Tribute Page | Cmwebby | 0 Kb |
Sticky Navbar | Phantomesse | 5,106 Kb |
SVG Transform vs CSS Transform | AmeliaBR | 4,175 Kb |
Pure CSS Read More Arrow | Zephyr | 1,747 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!