Skip to content

adding my animation to the project #2894

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions Art/al3shan33-animatedText/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Animated Text</title>
<link href="./styles.css" rel="stylesheet" />
</head>
<body>
<div class="container">
<div class="text_wrapper">
<ul class="text_list">
<li>
<p>Website <span>Developer</span></p>
</li>
<li>
<p>A <span>Multi-Disciplinary </span>Designer</p>
</li>
<li>
<p>Database <span>Analyst</span></p>
</li>
</ul>
</div>
</div>
</body>
</html>
4 changes: 4 additions & 0 deletions Art/al3shan33-animatedText/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"artName": "Animated Text",
"githubHandle": "al3shan33"
}
100 changes: 100 additions & 0 deletions Art/al3shan33-animatedText/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
@import url("https://fonts.googleapis.com/css2?family=Carrois+Gothic&family=Oswald:wght@300;400&family=Raleway:wght@300;400;500;700&display=swap");
* {
padding: 0;
margin: 0;
}
body {
font-size: 16px;
font-weight: 400;
color: #333;
font-family: "Raleway", sans-serif;
}
.container {
position: relative;
width: 100dvw;
height: 100dvh;
background-color: #00000098;
}
.text_wrapper {
position: fixed;
width: 100vw;
top: 47vh;
overflow: hidden;
}
.text_list {
list-style-type: none;
position: relative;
height: 60px;
overflow: hidden;
}
.text_list li {
position: absolute;
top: 0;
left: 0;
opacity: 0;
animation: slideFromBottom 9s linear infinite;
animation-fill-mode: forwards;
width: 100%;
text-align: center;
}

.text_list li:nth-child(1) {
animation-delay: 0s;
}
.text_list li:nth-child(2) {
animation-delay: 3s;
}
.text_list li:nth-child(3) {
animation-delay: 6s;
}
.text_list p {
color: #fff;
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
font-size: 36px;
margin: 10px 0 0 10px;
white-space: nowrap;
width: 100%;
text-align: center;
margin: 0;
}
.text_list p span {
color: #d72e22;
font-weight: 500;
}
@keyframes slideFromBottom {
0% {
opacity: 0;
transform: translateY(100%);
}
10% {
opacity: 1;
transform: translateY(0);
}
30% {
opacity: 1;
transform: translateY(0);
}
40% {
opacity: 0;
transform: translateY(-100%);
}
100% {
opacity: 0;
transform: translateY(-100%);
}
}
@media screen and (max-width: 992px) {
.text_wrapper {
top: 20dvh;
padding: 0;
}
.text_list p {
font-size: 48px;
}
}

@media screen and (max-width: 767px) {
.text_list p {
font-size: 24px;
}
}