Spaces:
Running
Running
File size: 693 Bytes
f449bd1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
// Main application script
document.addEventListener('DOMContentLoaded', () => {
// Initialize any global functionality here
console.log('Blank Canvas Studio initialized');
// Example: Add intersection observer for animations
const animateElements = document.querySelectorAll('.animate-on-scroll');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('animate-fade-in');
observer.unobserve(entry.target);
}
});
}, { threshold: 0.1 });
animateElements.forEach(el => observer.observe(el));
}); |