const bannerContainer = document.querySelector('.banner-container');
function createBannerClone() {
const banners = Array.from(document.querySelectorAll('.banner'));
const bannerClone = banners[0].cloneNode(true);
// Create an image element and set its source (change 'image-link.jpg' to your image link)
const image = document.createElement('img');
image.src = 'https://growyourshow.com/wp-content/uploads/2023/11/TMM.png'; // Replace with your image link
// Add the image to the cloned banner
bannerClone.appendChild(image);
bannerContainer.appendChild(bannerClone);
}
// Clone the first banner to the end for seamless scrolling
createBannerClone();
// Add the animation class to start scrolling
bannerContainer.classList.add('banner-animation');