3
Based on the comment of Marcelo Rafael, I got a solution to your case.
The support is kind of interesting, as you can see at this link can I Use.
.text {
width: 100%;
height: 100vh;
background: url('https://www.screenaustralia.gov.au/sacms/media/samedialibrary/screenguide/titles/tid33797-mountain/tid33797-web/tid33797-mountain-001-hero.jpg');
background-repeat: no-repeat;
background-size: cover;
font-weight: bold;
font-family: verdana, sans-serif;
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: justify;
max-width: 100%;
}
span{
text-shadow: 0 0 20px rgba(255,255,255,.2);
font-size: 7em;
}
p{
-webkit-text-fill-color: #fff;
font-family: 'Helvetica', 'Source Sans', sans-serif;
}
body {
background: url('https://www.screenaustralia.gov.au/sacms/media/samedialibrary/screenguide/titles/tid33797-mountain/tid33797-web/tid33797-mountain-001-hero.jpg');
background-repeat: no-repeat;
background-size: cover;
max-width: 100wh;
padding: 0;
margin: 0;
}
.outer-text{
width: 100%;
height: 100%;
background: rgba(0,0,0,.7);
}
<body>
<div class="outer-text">
<div class="text">
<span>Stack.</span>
<p>É divertido ajudar.</p>
</div>
</div>
</body>
Unfortunately this is not yet possible. There is a related question: https://answall.com/q/255444/8063
– Sam
My example: https://codepen.io/thecodermarcelo/pen/jZyvdV observe
background-clip
andtext-fill-color
.– Alex
I may not have quite understood your question. But I think you can make a similar effect that way. https://codepen.io/BrenoRUCHbr/pen/vdxPOG
– Breno Borges
Do you think your answer is satisfactory? You can mark it as you accept?
– Daniel Bonifácio