-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle1.css
114 lines (105 loc) · 1.87 KB
/
style1.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
body
{
margin: 0;
padding: 0;
width: 100%;
height: 100%;
font-family: sans-serif;
background: #262626;
}
.testimonials
{
margin: 200px auto 100px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
column-gap: 20px;
}
.testimonials .card
{
position: relative;
width: 350px;
height: 350px;
margin: 0 auto;
background: rgba(0, 0, 0, 0.5);
padding: 20px;
box-sizing: border-box;
text-align: center;
box-shadow: 0 10px 40px rgba(0,0,0,.5);
overflow: hidden;
}
.testimonials .card .layer
{
position: absolute;
top: calc(100% - 2px);
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(#1cf2eb, #1cb9f2);
z-index: 1;
transition: 0.5s;
}
.testimonials .card:hover .layer
{
top: 0;
}
.testimonials .card .content
{
position: relative;
z-index: 2;
}
.testimonials .card .content p
{
font-size: 18px;
line-height: 24px;
color: #fff;
}
.testimonials .card .content .image
{
width: 100px;
height: 100px;
margin: 0 auto;
border-radius: 50%;
overflow: hidden;
border: 4px solid #fff;
box-shadow: 0 10px 20px rgba(0,0,0,.2);
transition: 0.5s;
}
.testimonials .card .content .details h2
{
font-size: 18px;
color: #fff;
}
.testimonials .card .content .details h2 span
{
color: #1cf2eb;
font-size: 14px;
transition: 0.5s;
}
.testimonials .card:hover .content .details h2 span
{
color: #fff;
}
/*.testimonials .card:hover .content .image
{
content: url('images/facebook.png');
}*/
.image {
cursor:pointer;
position:relative;
width: 112px;
height: 112px;
}
.image .hover {
display:none;
position: absolute;
top: 0;
left: 0;
width: 100px;
height: 100px;
}
.image:hover .hover {
display:block;
}
.image:hover .original {
display:none;
}