-
Notifications
You must be signed in to change notification settings - Fork 42
/
scrollToGlider.tsx
70 lines (67 loc) · 1.46 KB
/
scrollToGlider.tsx
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
import * as React from "react";
import Glider from "../src";
function ScrollToGlider() {
return (
<div className="container">
<Glider
className="glider-container"
draggable
hasDots
slidesToShow={3.5}
slidesToScroll={1}
scrollToSlide={5}
>
<div className="slide">
<span>1</span>
</div>
<div className="slide">
<span>2</span>
</div>
<div className="slide">
<span>3</span>
</div>
<div className="slide">
<span>4</span>
</div>
<div className="slide">
<span>5</span>
</div>
<div className="slide">
<span>6</span>
</div>
<div className="slide">
<span>7</span>
</div>
<div className="slide">
<span>8</span>
</div>
<div className="slide">
<span>9</span>
</div>
<div className="slide">
<span>10</span>
</div>
<div className="slide">
<span>11</span>
</div>
<div className="slide">
<span>12</span>
</div>
</Glider>
<details>
<summary>View Source Code</summary>
<pre>
<code>{`<Glider
className="glider-container"
draggable
hasDots
slidesToShow={3.5}
slidesToScroll={1}
scrollToSlide={5}
>`}</code>
</pre>
</details>
</div>
);
}
export default ScrollToGlider;