问题标签 [qtranslate-x]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
40 浏览

javascript - 使垂直进度条平滑

谁能解决我的进度条平滑过渡的问题?

我想根据计时器减少进度条。目前我正在过渡到 7s 延迟和translateX,但是每当我清除间隔时,它需要几秒钟才能停止而不是立即停止。有没有其他方法可以实现这一点

这是我的代码:

输出:

我想让绿色进度条平滑减少