Commit 5fd2a09
authored
fix(marquee): remove white logo boxes, fix seamless loop, add grayscale hover (#648)
* fix(marquee): remove baked-in white backgrounds from Apple/Google logos
Apple and Google were the only two company logos with a hardcoded
<rect fill="white"> background, so they rendered as white cards on the
chalk marquee while every other logo was transparent. Removing the rect
makes them transparent and visually consistent with the rest.
* fix(marquee): seamless loop + grayscale hover treatment
Seamless loop: the track used space-x-6 (gap only *between* items, none
at the copy seam) plus a hand-computed width where itemWidth was 9.5rem
instead of the real 10.5rem (w-36 + 1.5rem gap). translateX(-50%) landed
~10rem short of one copy period every cycle, causing a visible jump.
Switch to flex w-max with a uniform mr-6 on every item so one copy is
exactly 10 units (168px each); -50% now equals one copy exactly
(measured seamless delta: 0px).
Upgrade: render logos muted grayscale (opacity-60) that colorize and
lift to full opacity on hover, so the strip reads as one cohesive set
regardless of each brand's native colors.
* fix(marquee): use logical margin me-6 and scoped transition1 parent 33bf8eb commit 5fd2a09
3 files changed
Lines changed: 3 additions & 8 deletions
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
| |||
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
57 | | - | |
| 55 | + | |
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
62 | | - | |
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
66 | 63 | | |
67 | 64 | | |
68 | | - | |
| 65 | + | |
69 | 66 | | |
70 | 67 | | |
71 | 68 | | |
72 | 69 | | |
73 | | - | |
| 70 | + | |
74 | 71 | | |
75 | 72 | | |
76 | 73 | | |
| |||
0 commit comments