react-intro-slider
Version:
`Simple and configurable app introduction slider for react`
176 lines (153 loc) • 2.77 kB
CSS
.ris-slider-overlay {
position: fixed;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
z-index: 100;
background: rgba(0, 0, 0, 0.7);
}
.ris-slider-container {
position: relative;
width: 100%;
height: 100%;
}
.ris-slider {
display: flex;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
background-color: #e0e0e0;
}
.ris-slide {
position: absolute;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
height: 100%;
}
.ris-slide-active {
visibility: visible;
opacity: 1;
transition: visibility 0s ease-out 0.33s, opacity 2s ease-out;
}
.ris-slide-inactive {
position: absolute;
visibility: hidden;
opacity: 0;
transition: visibility 0s ease-in 0.33s, opacity 2s ease-in;
}
.ris-slide-title-container {
box-sizing: border-box;
height: 12%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
padding: 2% 4%;
}
.ris-slide-title {
font-size: 1.8rem;
color: #000000;
}
.ris-slide-image {
width: 100%;
height: 100%;
object-fit: contain;
}
.ris-slide-image-container {
box-sizing: border-box;
width: 100%;
padding: 2% 4%;
height: 46%;
position: relative;
}
.ris-slide-description-container {
box-sizing: border-box;
height: 18%;
width: 100%;
padding: 2% 4%;
display: flex;
justify-content: center;
align-items: center;
}
.ris-slide-description {
font-size: 1.6rem;
text-align: center;
color: #000000;
}
.ris-small {
width: 30vw;
height: 70vh;
}
.ris-medium {
width: 40vw;
height: 70vh;
}
.ris-large {
width: 50vw;
height: 70vh;
}
.ris-fullscreen {
width: 100vw;
height: 100vh;
}
.ris-controller-container {
box-sizing: border-box;
display: flex;
width: 100%;
position: relative;
height: 24%;
padding: 2% 4%;
top: 76%;
}
.ris-controller-vertical {
flex-direction: column;
justify-content: space-between;
align-items: stretch;
}
.ris-controller-horizontal {
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
}
.ris-slide-icons-container {
display: flex;
justify-content: center;
width: 100%;
}
.ris-bullet-active {
background-color: rgba(0, 0, 0, 0.7);
}
.ris-bullet-inactive {
background-color: #ffffff;
}
.ris-bullet {
margin: 0 2%;
display: inline-block;
width: 1rem;
height: 1rem;
border-radius: 50%;
}
.ris-control-button {
color: white;
background-color: rgba(0, 0, 0, 0.7);
border: none;
letter-spacing: 3px;
border-radius: 5px;
}
.ris-control-button:hover {
text-shadow: 0px 0px 3px rgba(255, 255, 255, 1);
font-weight: 700;
transition: all 0.3s ease 0s;
}
.ris-button-vertical {
height: 30%;
width: 100%;
}
.ris-button-horizontal {
width: 30%;
height: 30%;
}