Skip to content

Commit

Permalink
link-effect slow down
Browse files Browse the repository at this point in the history
  • Loading branch information
abadiet committed Jul 7, 2024
1 parent 14fc183 commit 2f4e937
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ window.addEventListener("DOMContentLoaded", function() {
link.classList.add("link-effect-activated");
setTimeout(function () {
link.classList.remove("link-effect-activated");
}, 300);
}, 500);
setTimeout(activate_link, 5000, link);
}

let link_id = 0;
document.querySelectorAll(".link.link-effect").forEach(link => {
setTimeout(activate_link, link_id * 150, link);
setTimeout(activate_link, link_id * 250, link);
link_id += 1;
});
});

0 comments on commit 2f4e937

Please sign in to comment.