Skip to content

Commit 7c1aab5

Browse files
committed
🔧 Improve perspective of coverflow swiper
1 parent b09da2a commit 7c1aab5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/styles/custom.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
background-repeat: no-repeat;
2525
background-color: #000;
2626
position: relative;
27+
overflow-x: hidden;
2728
}
2829

2930
@media (min-aspect-ratio: 4/3) {
@@ -123,8 +124,8 @@
123124
}
124125
}
125126

126-
&.swiper-cards .swiper-slide {
127-
overflow: visible;
127+
&.swiper-coverflow {
128+
perspective-origin: 50% 70%;
128129
}
129130

130131
.swiper-slide {

0 commit comments

Comments
 (0)