59 lines
851 B
CSS
59 lines
851 B
CSS
.swiper {
|
|
position: relative;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.swiper__image {
|
|
width: 100vw;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
object-position: 33% 0%;
|
|
}
|
|
|
|
.swiper__content {
|
|
position: absolute;
|
|
bottom: 0;
|
|
z-index: 1;
|
|
left: 0;
|
|
right: 0;
|
|
background: var(--color-white);
|
|
padding: 1rem 0 2rem;
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.swiper__content .title{
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
height: 4.5rem;
|
|
font-size: 2.25rem;
|
|
line-height: 1;
|
|
margin-block: 0 1rem;
|
|
}
|
|
|
|
.swiper__links {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.swiper__slide {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
transition: left 1.25s ease-in-out;
|
|
}
|
|
|
|
.swiper__slide:first-child {
|
|
left: 0;
|
|
}
|
|
|
|
.swiper__slide:last-child {
|
|
left: -100%;
|
|
}
|