2
Hello, I made an animation of a text coming out from behind an image, but I can only use the Transform: Scale() and this is not what I really want, what I wish is that the text appears gradually and not go "stretching"
#primeiraparte {
width: 70%;
position: relative;
top: 140px;
display: grid;
grid-template-columns: 250px auto;
grid-template-rows: 445px;
grid-template-areas: "imagem texto";
left: 15%;
}
#imagemaplicativo {
grid-area: imagem;
width: 250px;
height: 500px;
justify-self: start;
z-index: 1;
animation: animacaoimagem 6s;
animation-fill-mode: backwards;
animation-delay: 1s;
}
#textoprimeiraparte {
justify-self: start;
grid-area: texto;
align-self: center;
position: relative;
padding: 80px 90px 80px 75px;
border-radius: 0px 25px 25px 0px;
background-color: #c6baa2;
font-family: "Roadgeek";
font-size: 24px;
text-align: center;
z-index: 0;
animation: animacaotexto 9s;
animation-fill-mode: backwards;
animation-delay: 1s;
}
@-webkit-keyframes animacaoimagem {
0% {
transform: translateX(300px);
}
100% {}
}
@-webkit-keyframes animacaotexto {
0% {
transform: translateX(-70px) scaleX(0.2);
}
65% {
transform: scaleX(1);
}
100% {
transform: scaleX(1.013);
}
}
<!DOCTYPE html>
<html>
<body>
<div id="primeiraparte">
<img src="../Fotos/app.png" id="imagemaplicativo" />
<div id="textoprimeiraparte"> A Future integra o seu estabelecimento com novas tecnologias <br /> que garantem rapidez e segurança.</div>
</div>
</body>
</html>
In this animation the text comes out "debuting" instead of appearing gradually along with the brown background. When I try to use width to contain the text behind the image, it appears out of it, underneath. And when I try to put the height it comes out strange too, anyway, I feel bad about it
@Cage could not fail xD
– Isac
@Isac I have a Snippet in VS Code that when I type in "place" it already posts an image tag with Placecage.com :D, I will create a new one for "Murray" and vary a little with Fillmurray.com or "Steve" for stevensegallery.com rss
– hugocsl