-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathavatar.css
115 lines (92 loc) · 1.75 KB
/
avatar.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
/*
Resources:
Learn more about colors here:
- https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
Having trouble with overriding rules? Learn about CSS specificity:
- http://specificity.keegan.st/
- https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity
For more challenge, try using gradients!
- https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Using_CSS_gradients
Want to change more about how it looks? See the full list of
SVG Presentation Attributes:
- https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute#Presentation_attributes
*/
body {
background:url(http://kingofwallpapers.com/ocean/ocean-004.jpg)
}
@keyframes slidein {
from{
transform:rotate(0deg);
fill:#aa1387
}
to{
transform:rotate(360deg);
fill:#aa1387
}
}
.avatar{
/* this sets default styles for everything in the avatar group */
stroke-width: 3;
fill: white;
stroke: black;
}
.body {
/* Your code here!
* Examples of how to set colors:
fill: red;
fill: rgb(243, 191, 189);
fill: rgba(243, 191, 189, 0.5);
fill: hsl(180, 70%, 50%);
* You can even change the color and style of the line! Examples:
stroke: #FFF000;
stroke-width: 1;
*/
fill: #FFFFFF;
}
.eye {
stroke: black;
fill:#f227f2
}
.arm {
}
.shoe {
fill: #aa1387;
animation-duration: .5s;
animation-name: slidein;
animation-iteration-count: infinite;
}
.left {
}
.right {
}
#head {
fill:#aa1387
}
#right-eye {
}
#left-eye {
}
#neck {
fill: brown
}
#shirt {
fill:rgba(179, 249, 255, 0.99)
}
#cape {
fill:#f227f2
}
#mouth {
}
#pants {
fill:rgba(179, 249, 255, 0.99)
}
#left-arm {
fill:#76eac6
}
#right-arm {
fill:brown
}
#left-shoe {
}
#right-shoe {
}