Skip to content

Commit

Permalink
fixed mozilla rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel5151 committed Aug 27, 2015
1 parent 60475a7 commit 3b580e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion main.js
Expand Up @@ -262,7 +262,10 @@ function spawnPiece(type, slot, rotation, anti) {

if (anti) {
$(container).find('.chunk').each(function () {
if (!$(this).hasClass("placeholder")) $(this).addClass("anti-chunk")
if (!$(this).hasClass("placeholder")) {
$(this).addClass("anti-chunk")
$(this).css('webkitAnimationName', 'anti');
}
})
}

Expand Down
2 changes: 0 additions & 2 deletions styles.css
Expand Up @@ -356,8 +356,6 @@ a {
}

.anti-chunk {
opacity: 50% !important;
background: rgba(0, 0, 0, 0.5) !important;
/*Keyframes for anti animation are generated on the fly based on colors of pieces*/
-webkit-animation: anti 2s;
-moz-animation: anti 2s;
Expand Down

0 comments on commit 3b580e7

Please sign in to comment.