0
good afternoon, I need to do an animation similar to the one in the video https://www.youtube.com/watch?v=OKo0RMtZ7g4&feature=youtu.be.
But I can’t seem to adjust the time.
.container {
height: 600px;
width: 160px;
overflow: hidden;
}
.centro {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.parallax {
height: 600px;
width: 160px;
background-image: url('img/intel_hybrid_160_bg.jpg');
background-repeat: no-repeat;
background-size: cover;
background-position: top center;
background-attachment: scroll;
}
.logo {
position: absolute;
top: 95%;
left: 70%;
transform: translate(-95%, -100%);
}
.titulo1 {
position: absolute;
top: 40%;
left: -100%;
list-style: none;
animation: teste 0.3s ease-out both;
}
@-webkit-keyframes teste {
0% {
top: 40%;
left: -100%;
transform: translate(-50%, -50%);
}
100% {
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
}
}
.titulo2 {
position: absolute;
top: 50%;
left: -100%;
list-style: none;
animation-name: teste2;
animation-duration: 0.3s;
animation-iteration-count: 1;
animation-direction: alternate;
animation-timing-function: ease-out both;
animation-fill-mode: forwards;
animation-delay: 0.3s;
}
@-webkit-keyframes teste2 {
0% {
top: 50%;
left: -100%;
transform: translate(-50%, -50%);
}
100% {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
opacity: 0;
}
}
.titulo3 {
position: absolute;
top: 60%;
left: -100%;
list-style: none;
animation-name: teste3;
animation-duration: 0.3s;
animation-iteration-count: 1;
animation-direction: alternate;
animation-timing-function: ease-out both;
animation-fill-mode: forwards;
animation-delay: 0.6s;
}
@-webkit-keyframes teste3 {
0% {
top: 60%;
left: -100%;
transform: translate(-50%, -50%);
}
100% {
top: 60%;
left: 50%;
transform: translate(-50%, -50%);
opacity: 0;
}
}
.kenburns-top {
-webkit-animation: kenburns-top 5s ease-out both;
animation: kenburns-top 5s ease-out both;
}
/* ----------------------------------------------
* Generated by Animista on 2019-2-18 15:14:58
* w: http://animista.net, t: @cssanimista
* ---------------------------------------------- */
/**
* ----------------------------------------
* animation kenburns-top
* ----------------------------------------
*/
@-webkit-keyframes kenburns-top {
0% {
-webkit-transform: scale(1) translateY(0);
transform: scale(1) translateY(0);
-webkit-transform-origin: 50% 16%;
transform-origin: 50% 16%;
}
100% {
-webkit-transform: scale(1.25) translateY(-15px);
transform: scale(1.25) translateY(-15px);
-webkit-transform-origin: top;
transform-origin: top;
}
}
@keyframes kenburns-top {
0% {
-webkit-transform: scale(1) translateY(0);
transform: scale(1) translateY(0);
-webkit-transform-origin: 50% 16%;
transform-origin: 50% 16%;
}
100% {
-webkit-transform: scale(1.25) translateY(-15px);
transform: scale(1.25) translateY(-15px);
-webkit-transform-origin: top;
transform-origin: top;
}
}
<div class="container centro">
<div class="parallax kenburns-top"></div>
<div class="logo">
<img src="img/intel_hybrid_160_logo.png" class="logo" alt="">
</div>
<ul class="">
<li><img src="img/intel_hybrid_160_copy1a.png" class="titulo1" id="titulo-1"></li>
<li><img src="img/intel_hybrid_160_copy1b.png" class="titulo2" id="titulo-2"></li>
<li><img src="img/intel_hybrid_160_copy1c.png" class="titulo3" id="titulo-3"></li>
</ul>
</div>
Which exactly?
– Leandro Angelo
I have three classes, title 1, title 2 and title 3. would like that as soon as titulo1 enters it takes 1 second and enter titulo2, 1 according to titulo3 and then 3 gives opacity: 1; ?
– Roney Berti
you noticed that repeats the title2, no?
– Leandro Angelo
Yes, I noticed ... but doing it in the title 1, title 2 to give me an idea. the rest is easy ... because I have 10 more titles to do it
– Roney Berti
Dude, I don’t understand the effect that you just said, you want me to go 1 by 1 by 1 in 1 second, until the 3 are on screen, and after that what you want to do?
– hugocsl
after want to disappear from the screen, axo that would use opacity.
– Roney Berti
edited the question, I believe that now of to better intender.
– Roney Berti