Skip to content

Commit

Permalink
Merge pull request #3748 from Kevindua26/UI-Branch
Browse files Browse the repository at this point in the history
Add Animation
  • Loading branch information
abhi03ruchi authored Oct 19, 2024
2 parents 1eff845 + 5a3bca2 commit d6ad0a5
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3301,8 +3301,38 @@ <h1 class="rating_heading">Rate Us</h1>
<div class="container">

<div class="hero-content">
<p class="section-subtitle"> Let's Exchange Old Books and Discover New Stories Together!</p>
<h1 class="h1 hero-title" style="color: var(--text-color);">SwapReads.com - Where Books Find New Adventures!</h1>
<p class="section-subtitle"> Let's Exchange Old Books and Discover New Stories Together!</p>
<h1 class="h1 hero-title" id="h1-hero-title" style="color: var(--text-color);">SwapReads.com - Where Books Find New Adventures!</h1>
<h1 class="h1 hero-title" id="h1-hero-title-1" style="color: var(--text-color);"></h1>
<script>
const h1Typing = document.getElementById('h1-hero-title');
const h1Text = h1Typing.textContent;
h1Typing.textContent = '';
let i = 0;
function typing() {
if (i < h1Text.length) {
h1Typing.textContent += h1Text.charAt(i);
i++;
setTimeout(typing, 100);
} else {
h1Typing.classList.add('blinking-cursor');
}
}
typing();

// Add CSS for blinking cursor
const style = document.createElement('style');
style.innerHTML = `
.blinking-cursor::after {
content: '|';
animation: blink 1s step-end infinite;
}
@keyframes blink {
from, to { opacity: 1; }
50% { opacity: 0; }
}`;
document.head.appendChild(style);
</script>
<p class="section-text " >
Join SwapReads.com, the ultimate online community for book enthusiasts! Create your profile, list your
favorite reads, and embark on literary journeys by swapping books with fellow passionate readers. Discover
Expand Down

0 comments on commit d6ad0a5

Please sign in to comment.