Fix spinning-square to spin again.
TBR=abarth@chromium.org Review URL: https://codereview.chromium.org/942923002
This commit is contained in:
parent
3b2ed6e627
commit
783bdda7e5
@ -21,7 +21,7 @@ void main() {
|
|||||||
timeBase = time;
|
timeBase = time;
|
||||||
double delta = time - timeBase;
|
double delta = time - timeBase;
|
||||||
int rotation = (delta / 10).floor();
|
int rotation = (delta / 10).floor();
|
||||||
square.style.setProperty("transform", 'rotate(${rotation}deg)');
|
square.style["transform"] = "rotate(${rotation}deg)";
|
||||||
window.requestAnimationFrame(animate);
|
window.requestAnimationFrame(animate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user