Siemka
Inspirując się tym wątkiem zrobiłem taką stronkę.
body {
margin: 0;
padding: 0;
background-color: rgb(17, 17, 17);
color: white;
}
.container {
width: 80vw;
height: 90vh;
margin: 2em auto 1em;
padding: 1.5em;
display: flex;
flex-direction: column;
/*background-color: rgb(104, 187, 219);*/
}
.logo {
width: 100%;
height: 80%;
text-align: center;
font: 900 6.2em/1.1 system-ui;
overflow: hidden;
margin-top:10%;
animation: animate 1s linear forwards;
}
.shadow:before
{
content: "";
z-index: -1;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: linear-gradient(-45deg, #53c0e4 0%, #8226c0 100% );
transform: translate3d(0px, 20px, 0) scale(0.95);
filter: blur(20px);
opacity: var(0.7);
transition: opacity 0.3s;
border-radius: inherit;
}
.shadow::after {
content: "";
z-index: -1;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: inherit;
border-radius: inherit;
}
.logo {
background-image: url(https://media.giphy.com/media/WUyQbeKHhpaHrrKJu6/giphy.gif);
background-size: cover;
background-position: 0% 100%;
background-repeat: no-repeat;
color: rgba(0,0,0,0.4);
-moz-background-clip: text;
-webkit-background-clip: text;
}
@keyframes animate {
0% {
opacity: 0;
margin-top: 100%;
filter: blur(10px);
}
30% {
opacity: 0.3;
margin-top: 70%;
filter: blur(7px);
}
60% {
opacity: 0.6;
margin-top: 60%;
filter: blur(4px);
}
70% {
opacity: 0.7;
margin-top: 50%;
filter: blur(2px);
}
80% {
opacity: 0.9;
margin-top: 20%;
filter: blur(1px);
}
90% {
opacity: 0.98;
margin-top: 12%;
filter: blur(1px);
}
}
<div class="container">
<div class="logo">
<a class="shadow">Lorem ipsum dolor sit amet consectetur</a>
</div>
</div>
Niestety na ten moment cień się rozlewa. Zależy mi na tym aby ten gradientowy cień dotyczył tylko tego tekstu.
Ma ktoś poradę odnośnie tego problemu? A może jakiś inny pomysł na efekt napisu?