-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
112 lines (105 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
107
108
109
110
111
112
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>index</title>
<meta name="description" content="" />
<meta name="author" content="baptooo" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="resources/css/style.css" />
</head>
<body>
<div id="content">
<div class="title-anim">
<h2 class="title main-title">jQuery SsrTimeline Helper<br /> for Superscrollorama</h2>
</div>
<div class="bg-paralax"></div>
<div class="elts-anim">
<ul class="elts">
<li class="elt"></li>
<li class="elt"></li>
<li class="elt"></li>
<li class="elt"></li>
</ul>
<h2 class="title">CreateTween and Pin methods support</h2>
</div>
<div class="pin">
<div class="layer2">
<div class="shape"></div>
</div>
<div class="layer1">
<div class="shape"></div>
</div>
</div>
<div class="pin-letter pattern4">
<h1 class="title letter">s</h1>
<h1 class="title letter">s</h1>
<h1 class="title letter">r</h1>
<h1 class="title letter">T</h1>
<h1 class="title letter">i</h1>
<h1 class="title letter">m</h1>
<h1 class="title letter">e</h1>
<h1 class="title letter">l</h1>
<h1 class="title letter">i</h1>
<h1 class="title letter">n</h1>
<h1 class="title letter">e</h1>
</div>
<div class="documentation">
<h2 class="title">Documentation</h2>
<code type="text/javascript">
<pre>
function ssrTimeline(anims, controller, settings);
@anims: [] Array of animations
@animation: {
type: {String} TweenMax method (fromTo, to, from, etc.)
loopDelay: {Number} specific parameter to ssrTimeline, will add a
progressive delay for each targetted elements
options: {Array} [selector, duration, params] Params for TweenMax method,
selector will be restrained to parent $(selector, parent) where
parent is the element which ssrTimeline was called $(parent).ssrTimeline();
}
@controller: superscrollorama controller instance ($.superscrollorama({}))
@settings: {
pin: {Number} This param will call $ssr.pin method instead of $ssr.addTween
duration: {Number} duration of the animation in pixels
offset: {Number} offset of the animation in pixels
}
</pre>
</code>
<code type="text/javascript">
<pre>
$('.documentation').ssrTimeline([
{
type: 'fromTo',
loopDelay
options: ['code', .5, {
css: { x: -150, opacity: 0 }
}, {
css: { x: 0, opacity: 1 }
}]
}
]);
</pre>
</code>
</div>
<div class="credits pattern2">
<a class="title" href="http://github.com/baptooo/ssrTimeline">github.com/baptooo/ssrTimeline</a>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="resources/js/jquery.superscrollorama.js"></script>
<script type="text/javascript" src="resources/js/polyfill.requestAnimationFrame.js"></script>
<script type="text/javascript" src="resources/js/jquery.smoothwheel.js"></script>
<script type="text/javascript" src="resources/js/greensock/TimelineLite.min.js"></script>
<script type="text/javascript" src="resources/js/greensock/TweenMax.min.js"></script>
<script type="text/javascript" src="resources/js/jQuery.superscrollorama.ssrTimeline.js"></script>
<script type="text/javascript" src="resources/js/script.js"></script>
</body>
</html>