Skip to content

Commit

Permalink
docs(bom/window): fixed #277
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Jun 24, 2024
1 parent 56a5093 commit 5aa689b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/bom/window.md
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ var start = null;
function step(timestamp) {
if (!start) start = timestamp;
var progress = timestamp - start;
// 元素不断向左移,最大不超过200像素
// 元素不断向右移,最大不超过200像素
element.style.left = Math.min(progress / 10, 200) + 'px';
// 如果距离第一次执行不超过 2000 毫秒,
// 就继续执行动画
Expand Down

0 comments on commit 5aa689b

Please sign in to comment.