Gradient Text Only CSS - how to make gradient text in CSS
/*CSS*/
*,*::before, *::after{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body{
width: 100%;
min-height: 100vh;
background: radial-gradient(#D9D9D9, #FFF);
font-family: sans-serif;
display: grid;
place-items: center;
}
.container{
width: 480px;
height: 100px;
line-height: 100px;
text-align: center;
position: relative;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}
.bg{
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: linear-gradient(to right, #ff5e52, #4cacf9, #c245d7, #ffd146, #f53e7c);
}
h1{
font-size: 5rem;
font-weight: 900;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #FFF;
mix-blend-mode: screen;
}
Watch video Gradient Text Only CSS - how to make gradient text in CSS Part 4 online, duration hours minute second in high quality that is uploaded to the channel Masters In Web Design 16 January 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 14 times and liked it 3 visitors.