Hi!
{"ScriptPreparationCode":"var start = null;\r\nvar element = document.getElementById(\u0027myElement\u0027);\r\nelement.style.position = \u0027absolute\u0027;","TestCases":[{"Name":"V1","Code":"function step(timestamp) {\r\n start = start || timestamp;\r\n var progress = timestamp - start;\r\n element.style.left = Math.min(progress / 10, 200) \u002B \u0027px\u0027;\r\n if (progress \u003C 2000) {\r\n window.requestAnimationFrame(step);\r\n }\r\n}\r\n\r\nwindow.requestAnimationFrame(step);","IsDeferred":false},{"Name":"V2","Code":"function step(timestamp) {\r\n if (!start) start = timestamp;\r\n var progress = timestamp - start;\r\n element.style.left = Math.min(progress / 10, 200) \u002B \u0027px\u0027;\r\n if (progress \u003C 2000) {\r\n window.requestAnimationFrame(step);\r\n }\r\n}\r\n\r\nwindow.requestAnimationFrame(step);","IsDeferred":false}]}