CSS
- 4 ответа
- 0 вопросов
1
Вклад в тег
years = Math.floor(t / (1000 * 60 * 60 * 24 * 30 * 12)),
months = Math.floor(t / (1000 * 60 * 60 * 24 * 30) % 12),
days = Math.floor(t / (1000 * 60 * 60 * 24) % 30),
hours = Math.floor((t / (1000 * 60 * 60)) % 24),
minutes = Math.floor((t / (1000 * 60)) % 60),
seconds = Math.floor((t / 1000) % 60);
#slider {
width: 600px;
border: 1px solid black;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
background-color: #3698DB;
padding: 10px;
}
.window {
width: 80%;
height: 150px;
background-color: #fff;
color: #3698DB;
display: flex;
justify-content: center;
align-items: center;
}
.dots {
width: 100%;
text-align: center;
}
.arrowLeft,
.arrowRight {
width: 20px;
height: 20px;
background-color: #fff;
border-radius: 100%;
display: flex;
justify-content: center;
align-items: center;
}