-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
73 lines (57 loc) · 1.96 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<title>Slider-carusel</title>
</head>
<body>
<section id="companies" class="companies">
<div class="container">
<h2>Нам доверяют</h2>
<div class="underline"></div>
<div class="companies-wrapper">
<div class="companies-hor">
<div class="companies-hor-item"><img src="images/companies/companies-1.png" alt=""></div>
<div class="companies-hor-item"><img src="images/companies/companies-2.png" alt=""></div>
<div class="companies-hor-item"><img src="images/companies/companies-3.png" alt=""></div>
<div class="companies-hor-item"><img src="images/companies/companies-4.png" alt=""></div>
<div class="companies-hor-item"><img src="images/companies/companies-5.png" alt=""></div>
<div class="companies-hor-item"><img src="images/companies/companies-6.png" alt=""></div>
<div class="companies-hor-item"><img src="images/companies/companies-7.png" alt=""></div>
</div>
<!-- <button id="test-left"> < </button>
<button id="test-right"> > </button> -->
</div>
</div>
</section>
<script src='js/slider.js'></script>
<script>
const slider = new Slider({
main: '.companies-wrapper',
wrap: '.companies-hor',
next: '#test-right',
prev: '#test-left',
infinity: true,
slidesToShow: '4',
responsive: [{
breakpoint: 1024,
slidesToShow: 3
},
{
breakpoint: 768,
slidesToShow: 2
},
{
breakpoint: 550,
slidesToShow: 1
}]
});
slider.init();
</script>
</body>
</html>