-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsst.css
More file actions
51 lines (45 loc) · 919 Bytes
/
sst.css
File metadata and controls
51 lines (45 loc) · 919 Bytes
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
.swing {
margin-top: 20%;
margin-left: auto;
margin-right: auto;
animation: swing ease-in-out 1s infinite alternate;
transform-origin: center -20px;
float:left;
box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
}
.swing img {
border: 5px solid white;
display: block;
}
.swing:after{
content: '';
position: absolute;
width: 20px; height: 20px;
border: 1px solid white;
top: -10px; left: 50%;
z-index: 0;
border-bottom: none;
border-right: none;
transform: rotate(45deg);
}
/* nail */
.swing:before{
content: '';
position: absolute;
width: 5px; height: 5px;
top: -14px;left: 54%;
z-index: 5;
border-radius: 50% 50%;
background:#000;
}
@keyframes swing {
0% { transform: rotate(3deg); }
100% { transform: rotate(-3deg); }
}
#temp{
margin-left: auto;
display: block;
margin-right: auto;
width : 300;
height: 400;
}