-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContact-icon.css
73 lines (62 loc) · 1.41 KB
/
Contact-icon.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
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800,900&displayer=swap');
#contact-icon{
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 50vh;
font-family: 'Poppins', sans-serif;
}
.container-icon{
width: 900px;
margin: 0 auto;
display: flex;
justify-content: space-between;
}
.container-icon .box{
text-align: center;
}
.container-icon .box .icon .fa {
font-size: 80px;
cursor: pointer;
}
.container-icon .box .icon h4, .container-icon .box .icon h3 {
position: relative;
font-weight: 400;
margin: 0;
padding: 2px 5px;font-size: 24px;
overflow: hidden;
transition-delay: 0.3333s;
color: transparent;
}
.container-icon .box .fa:hover ~ h3, .container-icon .box .fa:hover ~ h4 {
color: #000;
}
.container-icon .box .icon h4 {
font-weight: 600;
margin: 5px 0;
font-style: 30px;
}
.container-icon .box .icon h4::before, .container-icon .box .icon h3::before {
content: "";
position: absolute;
top: 0;
left: 100%;
width: 100%;
height: 100%;
background: #00bcd4;
transition: 1s;
}
.container-icon .box .icon h4::before{
left: initial;
right: 100%;
background: #9c27b0;
}
.container-icon .box .fa:hover ~ h3::before {
left: -100%;
}
.container-icon .box .fa:hover ~ h4::before{
left: initial;
right: -100%;
}