-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpattern.css
125 lines (105 loc) · 2.39 KB
/
pattern.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/****************************************************************************/
/***************************** CHECKLIST ******************************/
/****************************************************************************
id selector
class selector
attribute selector
relationship selectors:
descendent
child / direct descendent
sibling
pseudo-selectors
:hover
:first-child
:last-child
:nth-child
:nth-last-child
:nth-of-type
:first-of-type
:last-of-type
pseudo-elements
:before
:after
****************************************************************************/
body * {
transition: none;
}
.cell {
border: 1px dashed #ddd;
}
.cell:hover {
background-size: cover;
}
#wrapper {
background-color: lightblue;
-webkit-transition: all 10s ease-in;
}
#quadrant-sw:active {
background: url(assets/mario.png) no-repeat center;
}
#quadrant-nw .cell:hover,
#quadrant-ne .cell:hover {
border: none;
z-index: 0;
background: url(assets/sonic-tails-plane.gif) no-repeat;
background-size: contain;
animation: plane 0.5s infinite;
transform: scale(2);
}
#quadrant-se {
background-image: url(assets/loop.png);
}
#quadrant-se .cell:hover {
background-image: url(assets/sonic-roll.gif);
background-size: contain;
}
#quadrant-nw tbody tr:nth-child(6) .cell:hover,
#quadrant-nw tbody tr:nth-child(7) .cell:hover,
#quadrant-nw tbody tr:nth-child(8) .cell:hover,
#quadrant-sw .col .cell:hover {
background-image: url(assets/sonic-falling.gif);
background-size: cover;
transform: scale(1);
}
#quadrant-sw .cell:last-child:hover {
background-image: url(assets/sonic-run.gif);
background-size: cover;
}
#quadrant-sw .col:first-child .cell:last-child,
#quadrant-sw .col:nth-child(2) .cell:last-child {
background-image: url(assets/spikes.gif);
transition: all 0.5s ease-in-out;
background-size: contain;
}
#quadrant-sw .col:first-child .cell:last-child:hover,
#quadrant-sw .col:nth-child(2) .cell:last-child:hover {
background-image: url(assets/sonic-death.gif);
border: none;
background-size: cover;
background-repeat: none;
-webkit-transition: all 0.5s ease-in-out;
animation: sonicdies 3s infinite;
transform: scale(5);
}
@keyframes sonicdies {
0% {
bottom: 0px;
}
50% {
bottom: 100px;
}
100% {
bottom: -200px;
}
}
@keyframes plane {
0% {
bottom: 0px;
}
50% {
bottom: 5px;
}
100% {
bottom: -10px;
}
}