This commit is contained in:
vista-man committed 2025-01-25 21:25:36 +01:00
1 parent a56c55ad8e
commit 8010876630
3 files changed
+76

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
window.onload = function() {
const articles = document.querySelectorAll('h2 + p');
articles.forEach(article => {
article.style.opacity = '0';
const fadeIn = () => {
let opacity = 0;
const interval = setInterval(() => {
opacity += 0.05;
article.style.opacity = opacity;
if (opacity >= 1) {
clearInterval(interval);
}
}, 30);
};
setTimeout(fadeIn, 500 * articles.indexOf(article));
});
};