Skip to content

Commit f5f308c

Browse files
authored
Merge pull request #2 from scotch83/a-more-magic-grid
A new version with a white background and hidden coloured squares
2 parents b5b84ad + d923de3 commit f5f308c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ body,
2020
position: absolute;
2121
min-height: 50px;
2222
min-width: 50px;
23-
opacity: .5;
23+
opacity: 0;
2424
transition: all 1s, z-index 0s 2s;
2525
}
2626
.squareAnimated {

main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ MagicGrid.prototype.getSquare = function () {
3333
square.style.backgroundColor = color;
3434

3535
const squareContainer = document.createElement('div');
36-
squareContainer.style.backgroundColor = color;
3736
squareContainer.onmouseenter = (e) => {
3837
if (!this.wClicked) return;
3938
this.animateSquareEvent(e, square);

0 commit comments

Comments
 (0)