Skip to content

Commit

Permalink
edited swiper width and animation
Browse files Browse the repository at this point in the history
  • Loading branch information
mertlsarac committed Sep 5, 2021
1 parent 401a92e commit 916fd24
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
[slidesPerView]="1"
[spaceBetween]="10"
[loop]="true"
[autoplay]="{
delay: 2500,
disableOnInteraction: false
}"
[loopFillGroupWithBlank]="true"
[pagination]="{
clickable: true
Expand All @@ -16,7 +20,7 @@
slidesPerView: 2,
spaceBetween: 40
},
'1000': {
'1200': {
slidesPerView: 4,
spaceBetween: 50
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
@import "~swiper/swiper-bundle.min.css";

app-swiper-wrapper {
width: 65%;
margin: 0 auto;
position: relative;
}

.swiper {
width: 100%;
height: 100%;
position: initial;
}

.swiper-slide {
Expand Down Expand Up @@ -31,6 +38,14 @@
filter: contrast(0);
}

.swiper-button-prev {
left: -40px;
}

.swiper-button-next {
right: -40px;
}

.swiper-button-next, .swiper-button-prev {
color: var(--contrast);
}
Expand All @@ -43,8 +58,9 @@
background: var(--brand-color);
}

/*
@media only screen and (max-width: 999px) {
.swiper-button-next::after, .swiper-button-prev::after {
display: none;
}
}
}*/
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, Input, ViewEncapsulation } from '@angular/core';
import SwiperCore, { Navigation, Pagination } from 'swiper';
import SwiperCore, { Navigation, Pagination, Autoplay } from 'swiper';

SwiperCore.use( [ Pagination, Navigation ] );
SwiperCore.use( [ Pagination, Navigation, Autoplay ] );

export interface Partner {
brandLogo: string;
Expand Down

0 comments on commit 916fd24

Please sign in to comment.