Skip to content

Commit

Permalink
Created animation of text loading (#2402)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhavna2003 committed Oct 31, 2023
1 parent 36c6080 commit 81cb4fc
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Art/Bhavna2003/loadingtextanimation/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css"/>
<title>Text animation loader</title>
</head>
<body>
<ul>
<li data-item="L">L</li>
<li data-item="O">O</li>
<li data-item="A">A</li>
<li data-item="D">D</li>
<li data-item="I">I</li>
<li data-item="N">N</li>
<li data-item="G">G</li>
</ul>
</body>
</html>
90 changes: 90 additions & 0 deletions Art/Bhavna2003/loadingtextanimation/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
body {
margin: 0;
padding: 0;
background: #ffc107;
font-family: Verdana;
}
ul{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) skew(-25deg);
display: flex;
border: 4px solid #ff0;
box-shadow: 0px 20px 10px rgba(0, 0, 0, .2);
margin: 0;
padding: 0;
}
ul li{
position: relative;
list-style: none;
width: 80px;
height: 80px;
background: #ff0;
font-size: 3em;
color: rgba(0, 0, 0, .1);
text-align: center;
line-height: 80px;
box-sizing: border-box;
overflow: hidden;
margin: 0 -1px;
}
ul li:before{
content: attr(data-item);
position: absolute;
color: #262626;
top: 0;
left: 0;
height: 100%;
width: 100%;
animation: animate 2s linear infinite;
}
@keyframes animate {
0%{
top: -100%;
}
20%{
top: 0%;
background: transparent;
color: #262626;
}
40%{
top: 0%;
background: #410236;
color: #ff0;
}
60%{
top: 0%;
background: transparent;
color: #262626;
}
80%{
top: -20%;
background: transparent;
color: rgba(255, 51, 0, 0.808);
}
100%{
top: 100%;
}
}
ul li:nth-child(1):before{
animation-delay: 0s;
}
ul li:nth-child(2):before{
animation-delay: 0.1s;
}
ul li:nth-child(3):before{
animation-delay: 0.2s;
}
ul li:nth-child(4):before{
animation-delay: 0.3s;
}
ul li:nth-child(5):before{
animation-delay: 0.4s;
}
ul li:nth-child(6):before{
animation-delay: 0.5s;
}
ul li:nth-child(7):before{
animation-delay: 0.6s;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -2746,6 +2746,13 @@ let cards = [
imageLink: './Art/urjabahad/kinetic_loading.gif',
author: 'Urja',
githubLink: 'https://github.com/urjabahad'
},
{
artName: 'Loading Text Animation',
pageLink: './Art/Bhavna2003/loadingtextanimation/index.html',
imageLink: './Art/Bhavna2003/loadingtextanimation/textanimation.gif',
author: 'Bhavna',
githubLink: 'https://github.com/Bhavna2003'
}
];

Expand Down

0 comments on commit 81cb4fc

Please sign in to comment.