-
Notifications
You must be signed in to change notification settings - Fork 3
/
sponsor.js
29 lines (23 loc) · 1.27 KB
/
sponsor.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
document.addEventListener('DOMContentLoaded', function () {
const sponsorsContainer = document.getElementById('sponsors-container');
const sponsors = [
{ name: 'Sponsor C', logo: './FinEzzy-Logohigh-1-1024x349.png' },
{ name: 'Sponsor C', logo: './StockGro logo - Black Font - White Background (1).png' },
{ name: 'Sponsor C', logo: './unstop.jpg' },
{ name: 'Sponsor C', logo: './nutanCreation.jpg' },
// { name: 'Sponsor C', logo: '64e6177329c2d71389b1b219_walmart.png' },
// { name: 'Sponsor C', logo: '64e6177329c2d71389b1b219_walmart.png' }
];
sponsors.forEach(sponsor => {
const sponsorElement = document.createElement('div');
sponsorElement.classList.add('sponsor');
const logoElement = document.createElement('img');
logoElement.src = sponsor.logo;
logoElement.alt = sponsor.name + ' Logo';
sponsorElement.appendChild(logoElement);
sponsorsContainer.appendChild(sponsorElement);
});
header.style.animation = 'fadeIn 1s ease-in-out forwards';
header.querySelector('h1').style.animation = 'fadeInUp 1s ease-in-out forwards';
header.querySelector('p').style.animation = 'fadeInUp 1s ease-in-out 0.5s forwards';
});