locked animation
This commit is contained in:
parent
70d8e6e0aa
commit
d615b6b72b
2
app.js
2
app.js
@ -244,7 +244,7 @@ class Matrix extends MinoesTable {
|
||||
for (let y=0; y<this.rows; y++) {
|
||||
for (let x=0; x<this.columns; x++) {
|
||||
if (this.table.rows[y].cells[x].classList != "trail-animation")
|
||||
this.drawMino([x, y], this.blocks[y][x] || "")
|
||||
this.drawMino([x, y], "locked " + this.blocks[y][x] || "")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -57,3 +57,16 @@ body {
|
||||
1px -1px 4px rgba(186, 211, 255, 27%),
|
||||
1px 1px 4px rgba(186, 211, 255, 27%);
|
||||
}
|
||||
|
||||
@keyframes locked-animation {
|
||||
from {
|
||||
opacity: 1;
|
||||
background: white;
|
||||
border-color: white;
|
||||
}
|
||||
}
|
||||
|
||||
.locked.mino {
|
||||
animation: locked-animation;
|
||||
animation-duration: 0.2s;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user