Fix grass mirroring: use dedicated flipped keyframe animation instead of inline transform that was overridden by grassSway
This commit is contained in:
1 parent
fc5f68012e
commit
dc32e1c7ab
2 files changed
+9
-1
No files matched your search
@@ -1445,7 +1445,7 @@ class Game {
|
||||
span.style.top = y + 'px';
|
||||
span.style.animationDelay = (Math.random() * 4).toFixed(2) + 's';
|
||||
span.style.animationDuration = (2 + Math.random() * 2).toFixed(1) + 's';
|
||||
if (Math.random() > 0.5) span.style.transform = 'scaleX(-1)';
|
||||
if (Math.random() > 0.5) span.classList.add('tall-grass-flip');
|
||||
container.appendChild(span);
|
||||
}
|
||||
this._rocks = [];
|
||||
|
||||
Reference in new issue
Block a user