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