Adds back carousel animation

This commit is contained in:
Michael Novotny 2023-07-15 11:17:44 -05:00
parent 1381783490
commit e21297ceb9
No known key found for this signature in database

View File

@ -9,7 +9,8 @@ export async function Carousel() {
if (!products?.length) return null;
return (
<div className="flex w-full gap-4 overflow-x-auto pb-6 pt-1">
<div className=" w-full overflow-x-auto pb-6 pt-1">
<div className="flex animate-carousel gap-4">
{[...products, ...products].map((product, i) => (
<Link
key={`${product.handle}${i}`}
@ -31,5 +32,6 @@ export async function Carousel() {
</Link>
))}
</div>
</div>
);
}