Compare commits
1 Commits
feature/ma
...
c7d6e1b3a4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c7d6e1b3a4 |
@@ -0,0 +1,9 @@
|
|||||||
|
function rotateMirror(mirror) {
|
||||||
|
let angle = 0;
|
||||||
|
if (mirror.style.transform == "") {
|
||||||
|
angle = 0;
|
||||||
|
} else {
|
||||||
|
angle = parseInt(mirror.style.transform.split("(")[1].split("deg")[0])%360;
|
||||||
|
}
|
||||||
|
mirror.style.transform = `rotate(${angle+45}deg)`;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user