diff options
| author | Pinapelz <yukais@pinapelz.com> | 2026-04-16 21:21:49 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-04-16 21:21:49 -0700 |
| commit | c40d302688c1ac21f49a8761ad606ef6dcd07531 (patch) | |
| tree | 3a0edff6f59283f40d30fed24c613a1863a91d86 | |
| parent | 6aab722e79cce918c3bc2cfaae7731dae86f4167 (diff) | |
type: fix animations on chrome
| -rw-r--r-- | src/app/game/page.styles.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/app/game/page.styles.ts b/src/app/game/page.styles.ts index 9b10d3b..fdb743e 100644 --- a/src/app/game/page.styles.ts +++ b/src/app/game/page.styles.ts @@ -219,13 +219,15 @@ export const LineTimingBar = styled.div` export const LineTimingFill = styled.div.attrs<{ $pct: number }>((props) => ({ style: { - width: `${props.$pct}%`, + transform: `scaleX(${props.$pct / 100})`, }, }))<{ $pct: number }>` height: 100%; + width: 100%; border-radius: 2px; background: #7c3aed; - transition: width 0.1s linear; + transform-origin: left; + will-change: transform; `; export const CharRow = styled.div` |
