Skip to content

Commit 1b35a8d

Browse files
committed
added menu animations
1 parent fcffd5c commit 1b35a8d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

js/main.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@ $(document).ready(function() {
66
'slow');
77
});
88
$(".cell").click(function(){
9-
$(this).children(":visible").fadeOut();
9+
$(this).children(":visible").fadeOut(1);
1010
$(this).children(":hidden").delay(500).fadeIn();
11+
if ($(this).find(".back:visible")) {
12+
$(this).siblings().fadeOut();
13+
$(this).parent().siblings().fadeOut();
14+
}
15+
if ($(this).find(".front:visible")) {
16+
$(".flex-row").delay(1000).show();
17+
$(".cell").delay(1000).show();
18+
}
1119
});
1220
});

0 commit comments

Comments
 (0)