scroll to to top on clicking on footer logo

This commit is contained in:
2025-04-10 06:30:59 +04:00
parent 2442e7b981
commit 3fba29e9db
2 changed files with 13 additions and 0 deletions
+11
View File
@@ -215,4 +215,15 @@ document.addEventListener('DOMContentLoaded', function() {
});
});
});
// Scroll vers le haut avec effet moderne quand on clique sur le logo du footer
const footerLogo = document.querySelector('.footer-logo');
if (footerLogo) {
footerLogo.addEventListener('click', function() {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
}
});