Files
Gallus_Pub/src/script.js
Kenzo 493c2a94f0 Remove Gallus_Pub and Gallus_Pub_v1 directories along with associated configuration and files
This commit deletes the entire setup for both Gallus_Pub and Gallus_Pub_v1 projects, including `.gitignore`, configuration files, source code, styles, package files, and other related assets.
2025-08-02 12:56:52 +02:00

37 lines
1.2 KiB
JavaScript

// Wait for the DOM to be fully loaded
document.addEventListener('DOMContentLoaded', function() {
// Add a fade-in effect to the main elements
const elements = [
document.querySelector('.logo'),
document.querySelector('.coming-soon'),
document.querySelector('.social-links'),
document.querySelector('.opening-hours'),
document.querySelector('.events-note')
];
// Apply fade-in animation with delay for each element
elements.forEach((element, index) => {
if (element) {
element.style.opacity = '0';
element.style.transition = 'opacity 1s ease-in-out';
// Stagger the animations
setTimeout(() => {
element.style.opacity = '1';
}, 300 * index);
}
});
// Add a subtle hover effect to the logo
const logo = document.querySelector('.logo');
if (logo) {
logo.addEventListener('mouseover', function() {
this.style.transform = 'scale(1.05)';
this.style.transition = 'transform 0.3s ease';
});
logo.addEventListener('mouseout', function() {
this.style.transform = 'scale(1)';
});
}
});