fix: 动画间隔缩短

This commit is contained in:
streakingman 2022-09-17 17:59:53 +08:00
parent 0612149a5b
commit d90bb9b717
4 changed files with 6 additions and 2 deletions

View File

@ -28,6 +28,7 @@ vite+react 实现,欢迎 star、issue、pr、fork尽量标注原仓库地
- [ ] 多主题 - [ ] 多主题
- [ ] 计时 - [ ] 计时
- [ ] 性能优化 - [ ] 性能优化
- [ ] BGM/音效
- [ ] 点击时的缓冲队列,优化交互动画效果 - [ ] 点击时的缓冲队列,优化交互动画效果
- [ ] 该游戏似乎涉嫌抄袭,考证后补充来源说明 - [ ] 该游戏似乎涉嫌抄袭,考证后补充来源说明

View File

@ -31,7 +31,7 @@
width: 12.5%; width: 12.5%;
padding-bottom: 12.5%; padding-bottom: 12.5%;
position: absolute; position: absolute;
transition: 0.3s; transition: 150ms;
left: 0; left: 0;
top: 0; top: 0;
} }

View File

@ -276,7 +276,7 @@ const App: FC = () => {
checkCover(updateScene); checkCover(updateScene);
setAnimating(true); setAnimating(true);
await waitTimeout(300); await waitTimeout(150);
const filterSame = updateQueue.filter((sb) => sb.icon === symbol.icon); const filterSame = updateQueue.filter((sb) => sb.icon === symbol.icon);

View File

@ -4,4 +4,7 @@ import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
server: {
host: true,
},
}); });