анимация в каруселе, фикс навбара, выравнивание контактной формы

This commit is contained in:
xomimishka committed 2025-03-15 17:13:10 +03:00
1 parent 1f400b782c
commit 8dc93a67b9
11 files changed
+110 -40

No files matched your search

+36 -21
View File
@@ -16,7 +16,7 @@
height: auto;
height: 350px;
object-fit: cover;
object-position: center center;
object-position: center center; //
border-radius: 8px;
pointer-events: none;
}
@@ -42,8 +42,20 @@
}
/* стрелки */
.swiper-button-prev,
.swiper-button-next {
/* Кастомные стрелки */
.custom-navigation {
display: flex;
justify-content: space-between;
align-items: center;
position: absolute;
top: 50%;
width: 100%;
transform: translateY(-50%);
z-index: 10;
}
.custom-prev,
.custom-next {
width: 60px;
height: 60px;
background-color: white;
@@ -53,35 +65,28 @@
align-items: center;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
cursor: pointer;
font-size: 24px;
border: none;
}
&::after {
font-size: 18px;
font-weight: 1000;
color: black;
.custom-prev {
margin-left: -70px;
@media (max-width: 768px) {
margin-left: 0px;
}
}
/* Позиционирование стрелок */
.swiper-button-prev {
left: 5px;
.custom-next {
margin-right: -70px;
@media (max-width: 768px) {
left: 0px;
}
}
.swiper-button-next {
right: 5px;
@media (max-width: 768px) {
right: 0px;
margin-right: 0px;
}
}
.slider.news {
.swiper-slide {
opacity: 0.5;
//transition: opacity 0.3s ease-in-out;
transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
height: 65vh;
.slide-image {
@@ -89,6 +94,8 @@
}
@media (max-width: 768px) {
opacity: 1;
transition: none;
height: 48vh;
.slide-image {
height: 350px;
@@ -99,6 +106,10 @@
.swiper-slide-active {
opacity: 1;
}
&.no-animation .swiper-slide {
transition: none;
}
.swiper-wrapper:has(.swiper-slide.single) {
justify-content: center !important;
@@ -107,6 +118,10 @@
.swiper-slide-next {
opacity: 0.7;
transform: scale(0.9);
@media (max-width: 768px) {
opacity: 1;
transform: none;
}
}
}