-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
106 lines (101 loc) · 4.1 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
<title>carousel-slider demo</title>
<script src="./node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<script type="module">
import '@polymer/iron-demo-helpers/demo-pages-shared-styles';
import '@polymer/iron-demo-helpers/demo-snippet';
</script>
<script type="module" src="./src/components/carousel-slider.js"></script>
<script type="module" src="./src/components/carousel-slider-item.js"></script>
<script type="module" src="./src/components/test-card.js"></script>
<custom-style>
<style is="custom-style" include="demo-pages-shared-styles">
</style>
</custom-style>
</head>
<body>
<h2>carousel-slider demo</h2>
<div class="vertical-section-container centered">
<h3>Basic</h3>
<demo-snippet>
<template>
<carousel-slider>
<carousel-slider-item>
<test-card
src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcR4Us6oHt0R7C57c8PgmGIhKxwaIHPNt9jjHoSsipdLG7YH5u57"
text="slide1"
></test-card>
</carousel-slider-item>
<carousel-slider-item>
<test-card
src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRYaV_193WdE0PpKSMgdYIu_1qL9RiBZf91eOxz3Ezu8ts56gQF"
text="slide2"
></test-card>
</carousel-slider-item>
<carousel-slider-item>
<test-card
src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcQtomwNWurzYVm0XxiJiCpQzjYmwu-OIINWQCXGUZQBtyk8zXiL"
text="slide3"
></test-card>
</carousel-slider-item>
<carousel-slider-item>
<test-card
src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcTLULhT7KuwWXoGbSD7RFRrdvqlVDio0rz8Q2O0pPLpY-mdvyD4"
text="slide4"
></test-card>
</carousel-slider-item>
<carousel-slider-item>
<test-card
src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcTXghYdlKnh9v2WMMDFI5PQLJuz6MEAQgVGRMr3zEs0QPjqW1At"
text="slide5"
></test-card>
</carousel-slider-item>
</carousel-slider>
</template>
</demo-snippet>
</div>
<div class="vertical-section-container centered">
<h3>Loop</h3>
<demo-snippet>
<template>
<carousel-slider loop>
<carousel-slider-item>
<test-card
src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcR4Us6oHt0R7C57c8PgmGIhKxwaIHPNt9jjHoSsipdLG7YH5u57"
text="slide1"
></test-card>
</carousel-slider-item>
<carousel-slider-item>
<test-card
src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRYaV_193WdE0PpKSMgdYIu_1qL9RiBZf91eOxz3Ezu8ts56gQF"
text="slide2"
></test-card>
</carousel-slider-item>
<carousel-slider-item>
<test-card
src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcQtomwNWurzYVm0XxiJiCpQzjYmwu-OIINWQCXGUZQBtyk8zXiL"
text="slide3"
></test-card>
</carousel-slider-item>
<carousel-slider-item>
<test-card
src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcTLULhT7KuwWXoGbSD7RFRrdvqlVDio0rz8Q2O0pPLpY-mdvyD4"
text="slide4"
></test-card>
</carousel-slider-item>
<carousel-slider-item>
<test-card
src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcTXghYdlKnh9v2WMMDFI5PQLJuz6MEAQgVGRMr3zEs0QPjqW1At"
text="slide5"
></test-card>
</carousel-slider-item>
</carousel-slider>
</template>
</demo-snippet>
</div>
</body>
</html>