Add background pattern and smooth scrolling effect to welcome page

This commit is contained in:
Roberto Guagliardo
2025-11-15 14:09:32 +01:00
parent 0336484f34
commit d83fce834a
3 changed files with 61 additions and 9 deletions

View File

@@ -14,3 +14,15 @@ document.addEventListener('DOMContentLoaded', () => {
parent: '.grid' // dit moet de container zijn waarin sticky moet blijven
});
});
const cursor = document.getElementById('custom-cursor');
document.addEventListener('mousemove', (e) => {
gsap.to(cursor, {
duration: 0.2,
x: e.clientX + 20,
y: e.clientY - 15,
ease: 'power2.out'
});
});