scroll to to top on clicking on footer logo
This commit is contained in:
+11
@@ -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'
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user