-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
117 lines (95 loc) · 2.31 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
113
114
115
116
117
body {
background-color: #dddd;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100svh;
width: 100%;
}
.heading {
color: #30475e;
font-size: 5rem;
font-family: system-ui;
display: block;
text-align: center;
z-index: 1000;
}
.card-group {
width: 30vmin;
}
.pp {
border-radius: 50%;
width: 300px;
position: absolute;
transform: translateY(-100%);
transition: transform 800ms cubic-bezier(0.05, 0.43, 0.25, 0.95)
}
.pp:nth-child(1) {
transform: translateX(-10%) translateY(-99%) rotate(-5deg);
}
.pp:nth-child(4) {
transform: translateX(-6%) translateY(-99%) rotate(-5deg);
}
.pp-s {
border-radius: 50%;
width: 150px;
position: absolute;
transform: translateX(30%) translateY(-150%);
z-index: -1000;
transition: transform 800ms cubic-bezier(0.05, 0.43, 0.25, 0.95)
}
.card-group:hover > .pp:nth-child(1) {
transform: translateX(-150%) translateY(50%) rotate(-5deg);
}
.card-group:hover > .pp:nth-child(2) {
transform: translateX(140%) translateY(-70%) rotate(15deg);
}
.card-group:hover > .pp:nth-child(3) {
transform: translateX(40%) translateY(100%) rotate(8deg);
}
.card-group:hover > .pp:nth-child(4) {
transform: translateX(-120%) translateY(-140%) rotate(-20deg);
}
.card-group:hover > .pp:nth-child(5) {
transform: translateY(-100%)
}
.card-group:hover > .pp-s:nth-child(6) {
transform: translateX(-120%) translateY(-50%) rotate(-20deg);
}
.card-group:hover > .pp-s:nth-child(7) {
transform: translateX(-30%) translateY(100%) rotate(30deg);
}
.card-group:hover > .pp-s:nth-child(8) {
transform: translateX(300%) translateY(150%) rotate(-30deg);
}
a {
text-decoration: none;
color: #30475e;
}
@media (max-width:1000px) {
.heading {
font-size: 3rem;
}
.pp {
border-radius: 50%;
width: 200px;
}
.pp-s {
border-radius: 50%;
width: 100px;
}
}
@media (max-width:600px) {
.heading {
font-size: 1.5rem;
}
.pp {
border-radius: 50%;
width: 100px;
}
.pp-s {
border-radius: 50%;
width: 50px;
}
}