finnaly created a carousel
This commit is contained in:
72
front-ui/app/css/carousel.css
Normal file
72
front-ui/app/css/carousel.css
Normal file
@@ -0,0 +1,72 @@
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.application-container {
|
||||
width: 400px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.arrow,
|
||||
.circle {
|
||||
cursor: pointer;
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
.arrow {
|
||||
position: relative;
|
||||
top: -100px;
|
||||
padding: 10px;
|
||||
}
|
||||
.carousel-stage {
|
||||
width: 300px;
|
||||
height: 200px;
|
||||
border: 1px solid black;
|
||||
overflow: hidden;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
}
|
||||
.carousel-stage ul.carousel-list {
|
||||
display: inline-block;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
position: relative;
|
||||
transition: 300ms ease-in-out;
|
||||
}
|
||||
.carousel-stage ul.carousel-list li {
|
||||
display: inline-block;
|
||||
width: 300px;
|
||||
height: 200px;
|
||||
float: left;
|
||||
}
|
||||
.carousel-stage ul.carousel-list li img {
|
||||
object-fit: cover;
|
||||
object-position: center center;
|
||||
width: 300px;
|
||||
height: 200px;
|
||||
}
|
||||
.carousel-stage ul.dots {
|
||||
width: 300px;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
text-align: center;
|
||||
}
|
||||
.carousel-stage ul.dots li {
|
||||
display: inline-block;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
background-color: white;
|
||||
margin: 2px;
|
||||
border-radius: 50%;
|
||||
line-height: 5px;
|
||||
border: 2px solid black;
|
||||
}
|
||||
.carousel-stage ul.dots li.active {
|
||||
background-color: #ccc;
|
||||
}
|
||||
Reference in New Issue
Block a user