-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
152 lines (145 loc) · 7.47 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name=viewport content="width=device-width, initial-scale=1">
<meta name="google" content="notranslate">
<meta property="og:type" content="article">
<meta name="og:title" content="Carousel by borsch">
<meta name="og:description" content="Simple util that makes yours landing pages perfect">
<meta name="og:image" content="https://borsch.github.io/carousel/sample_deps/images/image.png">
<meta name="og:url" content="https://borsch.github.io/carousel/">
<meta name="og:site_name" content="Double A Publishing">
<meta name="twitter:title" content="Carousel by borsch">
<meta name="twitter:description" content="Simple util that makes yours landing pages perfect">
<meta name="twitter:image" content="https://borsch.github.io/carousel/sample_deps/images/image.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@kurpiak">
<title>Carousel by borsch</title>
</head>
<body>
<div class="carousel-main-container">
<div class="carousel-container">
<h2 class="title">Carousel</h2>
<div class="description">
The most intelligent library for carousels
<br />
Just scroll to see the effect
</div>
</div>
<div class="carousel-container">
<h2 class="title">Why use this library?</h2>
<div class="description">
<ul>
<li>
<i class="fa fa-check"></i> simple
<br />
<span class="pros-description">install it, add CarouselInit(your_selector), and that's all. what can be easiest?</span>
</li>
<li>
<i class="fa fa-check"></i> lightweight
<br />
<span class="pros-description">release file weight is just 4.52 KB</span>
</li>
</ul>
</div>
</div>
<div class="carousel-container">
<h2 class="title">Sample</h2>
<div class="description">
<pre>
<code class="js" id="js_sample">
CarouselInit(selector, {
directions: [
'left',
'down',
'right',
'down'
],
easing: Math.sin,
time: 500
});
// selector - your html block element
// direction[optional] - array with directions for animation(by default will produced array with 'down' options)
// easing[optional] - function that return value in [0, 1] interval
// tile[optional] - time for animation(change slides)
</code>
</pre>
</div>
</div>
<div class="carousel-container">
<h2 class="title">Info</h2>
<div class="description">
github <a href="https://github.com/borsch/carousel" target="_blank">repository</a>
<br />
contact with me <a href="mailto:[email protected]" target="_blank">[email protected]</a>
</div>
</div>
<div class="carousel-container">
<h2 class="title">Other easing function sample</h2>
<div class="description">
<pre>
<code class="js" id="easing">
<a href="#linear" class="easing">linear</a>: function (t) { return t }
// accelerating from zero velocity
<a href="#easeInQuad" class="easing">easeInQuad</a>: function (t) { return t*t }
// decelerating to zero velocity
<a href="#easeOutQuad" class="easing">easeOutQuad</a>: function (t) { return t*(2-t) }
// acceleration until halfway, then deceleration
<a href="#easeInOutQuad" class="easing">easeInOutQuad</a>: function (t) { return t<.5 ? 2*t*t : -1+(4-2*t)*t }
// accelerating from zero velocity
<a href="#easeInCubic" class="easing">easeInCubic</a>: function (t) { return t*t*t }
// decelerating to zero velocity
<a href="#easeOutCubic" class="easing">easeOutCubic</a>: function (t) { return (--t)*t*t+1 }
// acceleration until halfway, then deceleration
<a href="#easeInOutCubic" class="easing">easeInOutCubic</a>: function (t) { return t<.5 ? 4*t*t*t : (t-1)*(2*t-2)*(2*t-2)+1 }
// accelerating from zero velocity
<a href="#easeInQuart" class="easing">easeInQuart</a>: function (t) { return t*t*t*t }
</code>
</pre>
</div>
</div>
<div class="carousel-container">
<h2 class="title">This page immediately left blank</h2>
<div class="description">
just for sample of scrolling
</div>
</div>
<div class="carousel-container">
<h2 class="title">This page immediately left blank</h2>
<div class="description">
just for sample of scrolling
</div>
</div>
</div>
<div class="static-description">
© made by borsch
<br />
Oleh Kurpiak
</div>
<link rel="stylesheet" type="text/css" href="sample_deps/highlight/zenburn.css" />
<link rel="stylesheet" type="text/css" href="src/carousel.css" />
<link rel="stylesheet" type="text/css" href="sample_deps/style.css" />
<link rel="stylesheet" type="text/css" href="sample_deps/font_awesome/css/font-awesome.min.css" />
<script src="sample_deps/highlight/highlight.pack.js"></script>
<script src="src/carousel.utility.js"></script>
<script src="sample_deps/easing.js"></script>
<script src="sample_deps/main.js"></script>
<script type="text/javascript">
!function(name,path,ctx){
var latest,prev=name!=='Keen'&&window.Keen?window.Keen:false;ctx[name]=ctx[name]||{ready:function(fn){var h=document.getElementsByTagName('head')[0],s=document.createElement('script'),w=window,loaded;s.onload=s.onerror=s.onreadystatechange=function(){if((s.readyState&&!(/^c|loade/.test(s.readyState)))||loaded){return}s.onload=s.onreadystatechange=null;loaded=1;latest=w.Keen;if(prev){w.Keen=prev}else{try{delete w.Keen}catch(e){w.Keen=void 0}}ctx[name]=latest;ctx[name].ready(fn)};s.async=1;s.src=path;h.parentNode.insertBefore(s,h)}}
}('KeenAsync','https://d26b395fwzu5fz.cloudfront.net/keen-tracking-1.0.3.min.js',this);
KeenAsync.ready(function(){
// Configure a client instance
var client = new KeenAsync({
projectId: '58a990978db53dfda8a882ef',
writeKey: 'B3BBA6C0DC462D5379F1B135A0AA225C6F0EEEA7B0A6D1D71B831122BCA4F5D3BBD671DCD9F8647FD2069EA714BC1BD41A048D5B7E9C3CDA030164BB5D8C738DCFF9480319618BE19C3D6821087250E019820DE63708A9CD1B4AAD7C4A585FDD'
});
// Record an event
client.recordEvent('pageviews', {
ip_address: "${keen.ip}"
});
});
</script>
</body>
</html>