-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshareBtn.css
More file actions
76 lines (67 loc) · 1.35 KB
/
Copy pathshareBtn.css
File metadata and controls
76 lines (67 loc) · 1.35 KB
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
body {
margin : 0;
padding : 0;
font-family: "montserrat", sans-serif;
background : #f1f1f1;
display : flex;
height : 100vh;
align-items: center;
justify-content : center;
}
.share-button {
width : 280px;
height : 80px;
background : #dfe6e9;
border-radius : 40px;
display : flex;
align-items : center;
justify-content: center;
overflow : hidden;
position: relative;
cursor : pointer;
transition : .3s linear;
}
.share-button:hover {
transform: scale(1.1);
}
.share-button span{
position: absolute;
width: 100%;
height: 100%;
background: #2d3436;
color : #f1f1f1;
text-align: center;
line-height: 80px;
z-index: 999;
transition : .6s linear;
border-radius: 40px;
}
.share-button:hover span{
transform : translateX(-100%);
transition-delay: .3s;
}
.share-button a {
flex: 1;
font-size : 26px;
color : #2d3436;
text-align: center;
transform: translateX(-100%);
opacity: 0;
transition: 0.3s linear;
}
.share-button:hover a{
opacity: 1;
transform: translateX(0);
}
.share-button a:nth-of-type(1) {
transition-delay: 1s;
}
.share-button a:nth-of-type(2) {
transition-delay: 0.8s;
}
.share-button a:nth-of-type(3) {
transition-delay: 0.6s;
}
.share-button a:nth-of-type(4) {
transition-delay: 0.4s;
}