Skip to content

Commit a28c45d

Browse files
committed
Changed the braking in testimonials to marquee
1 parent 9880dc1 commit a28c45d

File tree

2 files changed

+21
-26
lines changed

2 files changed

+21
-26
lines changed

styles/contact.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@
4646
margin-bottom: 30px;
4747
}
4848
}
49+

styles/testimonial.module.css

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,30 @@
1-
.testimonial__item {
2-
padding: 0px 20px;
1+
.marquee {
2+
overflow: hidden;
3+
white-space: wrap;
4+
box-sizing: border-box;
5+
width: 100%;
6+
position: relative;
37
}
48

5-
.testimonial__client {
9+
.marqueeContent {
610
display: flex;
7-
column-gap: 1rem;
8-
margin-bottom: 30px;
11+
align-items: center;
12+
width: 200%;
13+
animation: marquee 10s linear infinite;
914
}
1015

11-
.testimonial__client_Avatar {
12-
width: 50px;
13-
height: 50px;
14-
}
15-
.testimonial__client h6 {
16-
font-weight: 400;
17-
}
18-
19-
.testimonial__client h6:last-child {
20-
color: var(--site-theme-color);
16+
.marqueeContent > div {
17+
display: inline-block;
18+
padding: 0 20px;
19+
max-width: 300px;
20+
box-sizing: border-box;
2121
}
2222

23-
@media only screen and (max-width: 768px) {
24-
.testimonial__img img {
25-
width: 300px !important;
26-
height: 300px !important;
23+
@keyframes marquee {
24+
0% {
25+
transform: translateX(100%);
2726
}
28-
29-
.testimonial__img {
30-
text-align: center;
31-
margin-bottom: 30px;
27+
100% {
28+
transform: translateX(-100%);
3229
}
3330
}
34-
35-
36-

0 commit comments

Comments
 (0)