-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.scss
84 lines (76 loc) · 1.53 KB
/
demo.scss
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
body {
width: 100vw;
display: flex;
flex-direction: column;
justify-content: center;
margin: auto;
align-items: center;
}
.eyes {
display: flex;
flex-direction: row;
width: 100%;
justify-content: center;
.eye {
height: 200px;
width: 200px;
border-radius: 40%;
margin: 5px;
background: #faf9f7;
box-shadow: 0 0 3px;
position: relative;
overflow: hidden;
display: flex;
flex-direction: row;
.eye-retina {
display: inline-block;
width: 60%;
height: 60%;
background: #373737;
border: #6CDDF8 2px solid;
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
} // eye retina
.eye-lash {
position: absolute;
height: 50%;
background: orange;
width: 100%;
z-index: 1;
} // eye lash
.up {
top: -50%;
animation: blinkbottom 2s linear infinite;
} // up
.down {
bottom: -50%;
animation: blinktop 2s linear infinite;
}
@keyframes blinkbottom {
0% {
top: -50%;
}
5% {
top: 0;
}
10% {
top: -50%;
}
}
@keyframes blinktop {
0% {
bottom: -50%;
}
5% {
bottom: 0;
}
10% {
bottom: -50%;
} // 10%
} // Blinktop
} // Eye
} // Eyes
/* Eyes */