add load text animation on page load
-
Hi,
I have created a text animation for my web site with html and css.
<div class="container">
<div class="loading">
<div class="loading__letter">A</div>
<div class="loading__letter">L</div>
<div class="loading__letter">T</div>
<div class="loading__letter">A</div>
<div class="loading__letter">I</div>
<div class="loading__letter">C</div>
<div class="loading__letter">O</div>
</div>
</div>
@import url(https://fonts.googleapis.com/css?family=Lato);
body {
margin: 0;
}
.container {
height: 100vh;
background: #0057a6;
display: flex;
justify-content: center;
align-items: center;
}
.loading {
display: flex;
flex-direction: row;
}
.loading__letter {
font-size: 88px;
font-weight: normal;
letter-spacing: 4px;
text-transform: uppercase;
font-family: "Lato";
color: #fff;
animation-name: bounce;
animation-duration: 2s;
animation-iteration-count: infinite;
}
.loading__letter:nth-child(2) {
animation-delay: .1s;
}
.loading__letter:nth-child(3) {
animation-delay: .2s;
}
.loading__letter:nth-child(4) {
animation-delay: .3s;
}
.loading__letter:nth-child(5) {
animation-delay: .4s;
}
.loading__letter:nth-child(6) {
animation-delay: .5s;
}
.loading__letter:nth-child(7) {
animation-delay: .6s;
}
.loading__letter:nth-child(8) {
animation-delay: .8s;
}
.loading__letter:nth-child(9) {
animation-delay: 1s;
}
.loading__letter:nth-child(10) {
animation-delay: 1.2s;
}
@keyframes bounce {
0% {
transform: translateY(0px)
}
40% {
transform: translateY(-40px);
}
80%,
100% {
transform: translateY(0px);
}
}
@media (max-width: 700px) {
.loading__letter {
font-size: 50px;
}
}
@media (max-width: 340px) {
.loading__letter {
font-size: 40px;
}
}How can I add it when every page is loaded? Or for a specific page. The animation, should be in full screen and responsive, of course.
Thank you and thank you for this awesome theme.
Best regards.
Altaico
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.