-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.html
79 lines (72 loc) · 2.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Elastic Slider</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Elastic Slider" />
<!-- CSS -->
<link rel="stylesheet" href="dist/elastic-slider.min.css">
<style>
.clipped-left {
-webkit-clip-path: url(#clipped-left);
clip-path: url(#clipped-left);
}
.clipped-right {
-webkit-clip-path: url(#clipped-right);
clip-path: url(#clipped-right);
}
</style>
<link rel="stylesheet" href="css/demo.css">
<!-- JS -->
<script src="js/snap.svg-min.js"></script>
<script src="js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script src="dist/elastic-slider.min.js"></script>
</head>
<body>
<div class="wrapper">
<div class="container">
<div class="row">
<div class="col-lg-8 col-xs-12">
<h1>Elastic Slider</h1>
<div class="slider-links">
<a href="http://x-team.com/2016/06/making-elastic-slider-scratch/">Article</a>
<a href="https://github.com/lmgonzalves/elastic-slider">Github</a>
</div>
<div class="slider-wrapper">
<div class="elastic-slider my-elastic-slider">
<div id="slide1"></div>
<div id="slide2"></div>
<div id="slide3"></div>
<div id="slide4"></div>
</div>
<div class="slider-help">?</div>
</div>
</div>
<div class="col-lg-4 col-xs-12">
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=lmgonzalvesgithubio" id="_carbonads_js"></script>
<h2>Basic usage</h2>
<p>After including the required styles and scripts:</p>
<pre><code class="html"><div class="elastic-slider">
<div id="image1"></div>
<div id="image2"></div>
<div id="image3"></div>
</div>
<script>
new ElasticSlider('.elastic-slider');
</script></code></pre>
<div class="learn-more-wrapper"><a href="https://github.com/lmgonzalves/elastic-slider#usage" class="learn-more">Learn More</a></div>
</div>
</div>
</div>
</div>
<footer>made with ♥ by <a href="http://lmgonzalves.github.io/">lmgonzalves</a></footer>
<script>
(function(){
new ElasticSlider('.my-elastic-slider');
})();
</script>
</body>
</html>