Skip to content

Commit

Permalink
Merge pull request #669 from Swaim-Sahay/Dancing-Alphabets
Browse files Browse the repository at this point in the history
Dancing alphabets
  • Loading branch information
aayush105 authored Oct 25, 2024
2 parents 0fbaef7 + 5531d67 commit 20a7f87
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
87 changes: 87 additions & 0 deletions Dancing Alphabets/Dancing Alphabets.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dancing Alphabets Animation</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f0f0f0;
font-family: Arial, sans-serif;
}

.dancing-text {
font-size: 3rem;
display: flex;
}

.letter {
animation: dance 1s ease-in-out infinite;
display: inline-block;
margin: 0 2px;
}

@keyframes dance {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-20px);
}
}

/* Delay animation for each letter */
.letter:nth-child(1) {
animation-delay: 0s;
}

.letter:nth-child(2) {
animation-delay: 0.1s;
}

.letter:nth-child(3) {
animation-delay: 0.2s;
}

.letter:nth-child(4) {
animation-delay: 0.3s;
}

.letter:nth-child(5) {
animation-delay: 0.4s;
}

.letter:nth-child(6) {
animation-delay: 0.5s;
}

.letter:nth-child(7) {
animation-delay: 0.6s;
}

.letter:nth-child(8) {
animation-delay: 0.7s;
}

.letter:nth-child(9) {
animation-delay: 0.8s;
}
</style>
</head>
<body>
<div class="dancing-text">
<span class="letter">D</span>
<span class="letter">A</span>
<span class="letter">N</span>
<span class="letter">C</span>
<span class="letter">I</span>
<span class="letter">N</span>
<span class="letter">G</span>
<span class="letter">!</span>
</div>
</body>
</html>
1 change: 1 addition & 0 deletions Dancing Alphabets/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this is a dancing alphabets

0 comments on commit 20a7f87

Please sign in to comment.