diff --git a/dressly/bun.lockb b/dressly/bun.lockb index c7bb232..77ccdcd 100755 Binary files a/dressly/bun.lockb and b/dressly/bun.lockb differ diff --git a/dressly/package.json b/dressly/package.json index cff66eb..35a3272 100644 --- a/dressly/package.json +++ b/dressly/package.json @@ -20,6 +20,7 @@ "@rsbuild/core": "^1.0.1", "@rsbuild/plugin-image-compress": "^1.0.2", "@rsbuild/plugin-svelte": "^1.0.1", + "@selemondev/svelte-marquee": "^0.0.2", "add": "^2.0.6", "autoprefixer": "^10.4.20", "eslint": "^9.10.0", @@ -31,6 +32,7 @@ "prettier": "^3.3.3", "svelte-check": "^4.0.1", "tailwindcss": "^3.4.13", + "tailwindcss-animate": "^1.0.7", "typescript": "^5.5.2", "typescript-eslint": "^8.5.0" }, diff --git a/dressly/src/components/BrandSlider/BrandSlider.svelte b/dressly/src/components/BrandSlider/BrandSlider.svelte index abc4952..cb402b7 100644 --- a/dressly/src/components/BrandSlider/BrandSlider.svelte +++ b/dressly/src/components/BrandSlider/BrandSlider.svelte @@ -7,6 +7,7 @@ balenciaga, louisVuitton, } from '@brand/index'; + import { Marquee } from '@selemondev/svelte-marquee'; const brands = [ { @@ -34,15 +35,40 @@ image: louisVuitton, }, ]; + + let animateSponsor = false; + // Update the state based on window size + const updateSponsorAnimation = () => { + if (window.innerWidth < 640) { // 640px is the 'sm' breakpoint in Tailwind + animateSponsor = false; + } else { + animateSponsor = true; + } + }; + -