You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
cosmopet-architecture/wp-content/themes/cosmopet/static/front-page/css/carousel.css

173 lines
3.2 KiB

.slider {
position: relative;
height: 400px;
width: 100%;
}
.slider.fullscreen {
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.slider.fullscreen ul.slides {
height: 100%;
}
.slider.fullscreen ul.indicators {
z-index: 2;
bottom: 30px;
}
.slider .slides {
background-color: #9e9e9e;
margin: 0;
height: 400px;
}
.slider .slides li {
opacity: 0;
position: absolute;
top: 0;
left: 0;
z-index: 1;
width: 100%;
height: inherit;
overflow: hidden;
}
.slider .slides li img {
height: 100%;
width: 100%;
background-size: cover;
background-position: center;
}
.slider .slides li .caption {
color: #fff;
position: absolute;
top: 15%;
left: 15%;
width: 70%;
opacity: 0;
}
.slider .slides li .caption p {
color: #e0e0e0;
}
.slider .slides li.active {
z-index: 2;
}
.slider .indicators {
position: absolute;
text-align: center;
left: 0;
right: 0;
bottom: 0;
margin: 0;
}
.slider .indicators .indicator-item {
display: inline-block;
position: relative;
cursor: pointer;
height: 16px;
width: 16px;
margin: 0 12px;
background-color: #e0e0e0;
-webkit-transition: background-color 0.3s;
transition: background-color 0.3s;
border-radius: 50%;
}
.slider .indicators .indicator-item.active {
background-color: #4caf50;
}
.carousel {
overflow: hidden;
position: relative;
width: 100%;
min-height: 660px;
-webkit-perspective: 500px;
perspective: 500px;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-transform-origin: 0% 50%;
transform-origin: 0% 50%;
}
.carousel.carousel-slider {
top: 0;
left: 0;
}
.carousel.carousel-slider .carousel-fixed-item {
position: absolute;
left: 0;
right: 0;
bottom: 20px;
z-index: 1;
}
.carousel.carousel-slider .carousel-fixed-item.with-indicators {
bottom: 68px;
}
.carousel.carousel-slider .carousel-item {
width: 100%;
height: 100%;
min-height: 400px;
position: absolute;
top: 0;
left: 0;
}
.carousel.carousel-slider .carousel-item h2 {
font-size: 24px;
font-weight: 500;
line-height: 32px;
}
.carousel.carousel-slider .carousel-item p {
font-size: 15px;
}
.carousel .carousel-item {
visibility: hidden;
/* width: 200px; */
/* height: 200px; */
width: 257px;
height: 489px;
position: absolute;
top: 0;
left: 0;
}
.carousel .carousel-item > img {
width: 100%;
}
.carousel .indicators {
position: absolute;
text-align: center;
left: 0;
right: 0;
bottom: 0;
margin: 0;
}
.carousel .indicators .indicator-item {
display: inline-block;
position: relative;
cursor: pointer;
margin: 24px 4px;
width: 8px;
height: 8px;
opacity : 0.5;
content: "";
border-radius: 50%;
border: 1px solid #fff;
background-color: unset;
/* round-color 0.3s; */
border-radius: 50%;
}
.carousel .indicators .indicator-item {
width: 9px;
height: 9px;
content: "";
border-radius: 50%;
border: 1px solid #fff;
background-color: unset;
}
.carousel .indicators .indicator-item.active {
background-color: #fff;
opacity: 1;
}
.carousel.scrolling .carousel-item .materialboxed,
.carousel .carousel-item:not(.active) .materialboxed {
pointer-events: none;
}