fix reflect rotation

This commit is contained in:
Mashy 2019-11-07 18:15:21 +10:00
parent 51ca41b218
commit bbfeb22a3f

View File

@ -18,7 +18,7 @@ class Refl extends Component {
this.animations = []; this.animations = [];
} }
render({ team }) { render({ player }) {
const oneX = anime.random(32, 96); const oneX = anime.random(32, 96);
const twoX = anime.random(192, 224); const twoX = anime.random(192, 224);
@ -28,7 +28,7 @@ class Refl extends Component {
version="1.1" version="1.1"
id="reflect" id="reflect"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
style={{ transform: team ? '' : 'rotate3d(1, 0, 0, 180deg)' }} style={{ transform: player ? '' : 'rotate3d(1, 0, 0, 180deg)' }}
viewBox="0 0 256 256"> viewBox="0 0 256 256">
<defs> <defs>
<filter id="reflectFilterGreen"> <filter id="reflectFilterGreen">