0
Good afternoon,
Someone could help me with this question: I’m trying to put an animation of Typing text in the home, but with 2 lines. I’m not getting a break between the two lines, so when the first line ends, the second starts, and the two come out together and restart the process.
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta charset="utf-8">
<meta name="author" content="">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Favicons -->
<link rel="shortcut icon" href="images/favicon.png">
<!-- CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/style-responsive.css">
<link rel="stylesheet" href="css/animate.min.css">
<link rel="stylesheet" href="css/vertical-rhythm.min.css">
<link rel="stylesheet" href="css/owl.carousel.css">
<link rel="stylesheet" href="css/font.awesome.min.css">
<link rel="stylesheet" href="css/owl.transitions.css">
<link rel="stylesheet" href="css/simpletextrotator.css">
<link rel="stylesheet" href="css/magnific-popup.css">
</head>
<body class="appear-animate">
<!-- Page Loader -->
<div class="page-loader">
<div class="loader">Carregando...</div>
</div>
<!-- End Page Loader -->
<!-- Page Wrap -->
<div class="page" id="top">
<!-- Home Section -->
<section class="home-section bg-dark" data-background="video/video.jpg" id="home">
<div class="js-height-full container">
<!-- Video BG Init -->
<!-- Please, replace three video files in folder "video" with your own ones -->
<div class="bg-video-wrapper" id="video-background-1">
<div class="bg-video-overlay bg-dark-alfa-50"></div>
</div>
<!-- End Video BG Init -->
<!-- Hero Content -->
<div class="home-content">
<div class="home-text">
<h1 class="hs-line-8 font-alt mb-30 mb-xs-0">
<span style="background-color: #00203C"> xxxxxxxx  </span>
</h1>
<div class="css-typing align-center">
<h1>TEXTO 1,</h1>
<h1>TEXTO 2.</h1>
</div>
<!-- End Hero Content -->
<!-- Scroll Down -->
<div class="local-scroll">
<a href="#about" class="scroll-down"><i class="fa fa-angle-down scroll-down-icon"></i></a>
</div>
<!-- End Scroll Down -->
</div>
</section>
<!-- End Home Section -->
.css-typing h1 {
font-family: "Open Sans";
font-size: 40px;
white-space: nowrap;
overflow: hidden;
font-color: #fff;
}
.css-typing h1:nth-child(1) {
width: 14em;
-webkit-animation: type 4s steps(40, end);
animation: type 4s steps(40, end);
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
animation-iteration-count: infinite;
animation-timing-function: cubic-bezier(0.42,0,0.58,1);
}
.css-typing h1:nth-child(2) {
width: 19.5em;
opacity: 0;
-webkit-animation: type2 4s steps(60, end);
animation: type2 4s steps(60, end);
-webkit-animation-delay: 4s;
animation-delay: 4s;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
animation-iteration-count: infinite;
animation-timing-function: cubic-bezier(0.62,0,0.78,1);
}
@keyframes type {
0% {
width: 0;
}
99.9% {
border-right: .15em solid orange;
}
100% {
border: none;
}
}
@-webkit-keyframes type {
0% {
width: 0;
}
99.9% {
border-right: .15em solid orange;
}
100% {
border: none;
}
}
@keyframes type2 {
0% {
width: 0;
}
1% {
opacity: 1;
}
99.9% {
border-right: .15em solid orange;
}
100% {
opacity: 1;
border: none;
}
}
@-webkit-keyframes type2 {
0% {
width: 0;
}
1% {
opacity: 1;
}
99.9% {
border-right: .15em solid orange;
}
100% {
opacity: 1;
border: none;
}
}
@keyframes blink {
50% {
border-color: transparent;
}
}
@-webkit-keyframes blink {
50% {
border-color: tranparent;
}
}
Cris only with CSS does not help you. Edit your question and include HTML as well
– hugocsl
Thank you hugocsl, I already did. Can I get help for this? I’m breaking my head...
– Cris Credie