Skip to content

Commit

Permalink
update headings
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-sorrentino committed Sep 3, 2024
1 parent f6da54e commit 54f4b62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/assets/js/headings.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
document.addEventListener("DOMContentLoaded", function() {
const words = ["employees", "students", "workers", "whistleblowers", "communities", "the public", "you"];
const words = ["whistleblowers", "employees", "students", "workers", "communities", "the public", "you"];
const animatedTextElement = document.querySelector(".animated-text");
let currentIndex = 0;

Expand All @@ -22,5 +22,9 @@ document.addEventListener("DOMContentLoaded", function() {
}, 1000); // Match this to the CSS animation duration
}

// Start the animation immediately
changeWord();

// Continue changing words every 4 seconds
setInterval(changeWord, 4000); // Change every 4 seconds
});
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h1>🤫 Hush Line</h1>
<div class="wrapper">
<h2>
We connect
<span class="animated-text highlight">whistleblowers</span><br>
<span class="animated-text highlight"></span><br>
with organizations and people who can help.
</h2>
<p>Hush Line provides anonymous reporting for journalists to newsrooms, managers to board rooms, and educators to classrooms.</p>
Expand Down

0 comments on commit 54f4b62

Please sign in to comment.