<script lang="ts">
	const imported: Record<string, any> = import.meta.glob('$lib/assets/img/banners/*.gif', {
		eager: true
	});
	let banners: Array<string> = [];
	for (const img in imported) {
		banners.push(img);
	}
</script>

<div class="holder noselect">
	<div class="marquee">
		{#each Object.entries(imported) as [_path, module]}
			<img src={module.default} alt="" />
		{/each}
		{#each Object.entries(imported) as [_path, module]}
			<img src={module.default} alt="" />
		{/each}
	</div>
</div>

<style>
	img {
		width: 88px;
		height: 31px;
	}
    .holder {
		font-family: none;
		margin: .5em auto;
        overflow: hidden;
		height: 31px;
    }
	.marquee {
		display: inline-flex;
		gap: 5px;

		animation: marquee 120s linear infinite;
	}
	@keyframes marquee {
		0% {
			transform: translateZ(0);
		}
		to {
			transform: translate3d(-50%, 0, 0);
		}
	}
</style>