-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
112 lines (111 loc) · 2.2 KB
/
styles.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
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #151515;
}
.card{
position: relative;
width: 350px;
height: 350px;
display: flex;
justify-content: center;
align-items: center;
transition: 0.3s;
border-radius: 20px;
}
.card:hover{
width: 600px;
}
.card .circle{
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
border-radius: 20px;
}
.card .circle::before{
content: '';
position: absolute;
top: 0;
left: 0;
width: 350px;
height: 350px;
background:#151515;
border-radius: 50%;
border: 8px solid var(--clr);
filter: drop-shadow(0 0 10px var(--clr)) drop-shadow(0 0 60px var(--clr));
transition: 0.2s;
}
.card:hover .circle::before{
width: 100%;
height: 100%;
border-radius: 20px;
background: var(--clr);
}
.card .circle .logo{
position: relative;
transition: 0.2s;
width: 250px;
}
.card:hover .circle .logo{
transform: scale(0);
transition-delay: 0s;
}
.card .coca{
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%) scale(0) rotate(315deg);
height: 300px;
transition: 0.3s ease-in-out;
}
.card:hover .coca{
top: 25%;
left: 72%;
height: 500px;
transform: translate(-50%,-50%) scale(1) rotate(15deg);
}
.card .content{
position: absolute;
width: 50%;
left: 20%;
padding: 20px 20px 20px 40px;
opacity: 0;
visibility: hidden;
transition: 0.2s;
}
.card:hover .content{
opacity: 1;
visibility: visible;
left: 0;
}
.card .content h2{
color: #fff;
font-size: 2.5em;
text-transform: uppercase;
}
.card .content p{
color: #fff;
font: 1em sans-serif;
font-weight: 200;
}
.card .content a{
color: #cfd;
position: relative;
display: inline-block;
text-decoration: none;
background: #3df21e;
padding: 10px 20px;
border-radius: 20px;
}