-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
129 lines (115 loc) · 1.98 KB
/
Copy pathstyle.css
File metadata and controls
129 lines (115 loc) · 1.98 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
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
118
119
120
121
122
123
124
125
126
127
128
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body{
display: flex;
flex-direction: column;
justify-content:center;
align-items:center;
min-height: 100vh;
background: #f4d1e9;
padding: 20px;
}
/* HEADING */
.slider-title{
font-size: 28px;
font-weight: 700;
color: #444;
margin-bottom: 25px;
text-align: center;
}
/* SLIDER WRAPPER */
.logos {
display: flex;
overflow: hidden;
padding: 40px 0;
background: rgba(255, 255, 255, 0.25);
backdrop-filter: blur(12px);
border-radius: 20px;
box-shadow: 10px 10px 25px rgba(0,0,0,0.25);
width: 100%;
max-width: 1400px;
}
/* MOVING TRACK */
.logos_slide {
display: flex;
white-space: nowrap;
animation: slide 14s linear infinite;
}
/* GLASS CARD */
.glass{
width: 150px;
height: 100px;
margin: 0 40px;
background: rgba(255, 255, 255, 0.25);
backdrop-filter: blur(12px);
border-radius: 16px;
border: 1px solid rgba(255,255,255,0.4);
box-shadow: 0 6px 18px rgba(0,0,0,0.2);
display:flex;
justify-content:center;
align-items:center;
transition: transform .3s ease;
}
/* ICON INSIDE */
.glass img {
width: 70%;
height: auto;
object-fit: contain;
}
/* HOVER — STOP SCROLL */
.logos:hover .logos_slide {
animation-play-state: paused;
}
/* HOVER SCALE EFFECT */
.glass:hover{
transform: scale(1.15);
}
/* INFINITE LOOP */
@keyframes slide {
from { transform: translateX(0); }
to { transform: translateX(-50%); }
}
/* RESPONSIVE */
@media (max-width: 992px){
.glass{
width: 130px;
height: 90px;
margin: 0 30px;
}
.glass img{
width: 65%;
}
}
@media (max-width: 768px){
.slider-title{
font-size: 22px;
}
.glass{
width: 110px;
height: 80px;
margin: 0 20px;
}
.glass img{
width: 60%;
}
}
@media (max-width: 480px){
.slider-title{
font-size: 18px;
}
.glass{
width: 90px;
height: 65px;
margin: 0 15px;
}
.glass img{
width: 55%;
}
.logos{
padding: 25px 0;
}
}