fix: 修复热门概念滚动动画暂停时跳跃问题

- 使用 animation-play-state 代替移除动画
- 暂停时保持在当前位置而不是跳回初始位置

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
zdl
2025-12-15 14:54:13 +08:00
parent c1b8a98bb4
commit 4e5f999881

View File

@@ -569,8 +569,9 @@ const FlowingConcepts = () => {
}} }}
> >
<Flex <Flex
animation={isPaused ? 'none' : `${animationName} ${duration}s linear infinite`} animation={`${animationName} ${duration}s linear infinite`}
sx={{ sx={{
animationPlayState: isPaused ? 'paused' : 'running',
[`@keyframes ${animationName}`]: direction === 'left' ? { [`@keyframes ${animationName}`]: direction === 'left' ? {
'0%': { transform: 'translateX(0)' }, '0%': { transform: 'translateX(0)' },
'100%': { transform: 'translateX(-50%)' }, '100%': { transform: 'translateX(-50%)' },