Fading text with CSS blend modes

Developer
Size
3,305 Kb
Views
56,672

How do I make an fading text with css blend modes?

I'm pretty sure I saw this effect months ago on another pen (using SVG?), but I can't remember it. If anyone does, please link so I can credit for the inspo.. What is a fading text with css blend modes? How do you make a fading text with css blend modes? This script and codes were developed by Giana on 23 June 2022, Thursday.

Fading text with CSS blend modes Previews

Fading text with CSS blend modes - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Fading text with CSS blend modes</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Roboto:400'>
<link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Roboto:300&text=Fadewytx'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="wrapper"> <div class="content"> <h1>Fade away text</h1> <p>Hover over me to reveal the rest. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempora doloremque facere quis, molestias dicta! Quidem ullam, dolore assumenda, iste laborum debitis inventore sequi magnam eos tempore recusandae laudantium dignissimos voluptates.Perferendis illo eius provident rem consequatur, sequi eos nulla sit nihil alias sapiente, dolorum natus laboriosam harum consectetur maxime facilis, ipsam commodi.</p> </div>
</div>
</body>
</html>

Fading text with CSS blend modes - Script Codes CSS Codes

p { color: #fff;
}
@supports (mix-blend-mode: screen) { p { mix-blend-mode: screen; position: relative; } p::after { background: -webkit-linear-gradient(top, transparent, #000 3rem) no-repeat bottom center/100% 100%; background: linear-gradient(180deg, transparent, #000 3rem) no-repeat bottom center/100% 100%; content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; -webkit-transition: 0.5s ease-out; transition: 0.5s ease-out; } p:hover::after { background-size: 100% 0%; }
}
/* Pen styling */
.wrapper { background: #222 url(https://source.unsplash.com/yNGQ830uFB4/1600x900) 50% 50%/cover; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; font: 18px/1.5 'Roboto', sans-serif; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; min-height: 100vh; position: relative;
}
.wrapper::before { background: #222; content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0.5;
}
h1 { font-size: 32px; font-weight: 300;
}
.content { color: #fff; max-width: 600px; text-align: center; position: relative;
}
Fading text with CSS blend modes - Script Codes
Fading text with CSS blend modes - Script Codes
Home Page Home
Developer Giana
Username giana
Uploaded June 23, 2022
Rating 4.5
Size 3,305 Kb
Views 56,672
Do you need developer help for Fading text with CSS blend modes?

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!

Giana (giana) Script Codes
Create amazing blog posts with AI!

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!