-
Notifications
You must be signed in to change notification settings - Fork 14
/
style.css
58 lines (45 loc) · 1.43 KB
/
style.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
body {
text-align: center;
font-family: helvetica;
}
svg {
width: 30%;
}
.base, .glass, .snow, .arm, .nose{
stroke:#231f20;
stroke-width:4px;
}
.base, .glass, .snow, .arm, .nose, .flake{
stroke-miterlimit:10;
}
.base{fill:#303030;}
.glass{fill:#d0ebea;}
.snow,.flake{fill:#fff;}
.nose{fill:#ea9c22;}
.arm{fill:none;}
/* Shake effect */
@-webkit-keyframes classname {
0% { -webkit-transform: translate(2px, 1px) rotate(0deg); }
10% { -webkit-transform: translate(-1px, -2px) rotate(-5deg); }
20% { -webkit-transform: translate(-3px, 0px) rotate(5deg); }
30% { -webkit-transform: translate(0px, 2px) rotate(0deg); }
40% { -webkit-transform: translate(1px, -1px) rotate(5deg); }
50% { -webkit-transform: translate(-1px, 2px) rotate(-5deg); }
60% { -webkit-transform: translate(-3px, 1px) rotate(0deg); }
70% { -webkit-transform: translate(2px, 1px) rotate(-5deg); }
80% { -webkit-transform: translate(-1px, -1px) rotate(5deg); }
90% { -webkit-transform: translate(2px, 2px) rotate(0deg); }
100% { -webkit-transform: translate(1px, -2px) rotate(-5deg); }
}
classname:hover {
-webkit-animation-name: shake;
-webkit-animation-duration: 1s;
-webkit-transform-origin:50% 50%;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
}
classname:hover classname {
-webkit-animation-name: shake;
-webkit-animation-iteration-count: infinite;
-webkit-animation-duration: 1s;
}