forked from blivesta/animsition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·121 lines (107 loc) · 5.14 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>clickstream.js · jquery plugin for add an effect to a page transition</title>
<!-- Vendor CSS -->
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" />
<!-- Doc CSS -->
<link rel="stylesheet" href="./css/docs.css">
<!-- Vendor js -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="http://cdn.jsdelivr.net/jquery.easing/1.3/jquery.easing.1.3.js"></script>
<!-- clickstream -->
<script src="./dist/clickstream.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("body").clickstream();
});
</script>
</head>
<body class="home">
<main class="ck-masthead" id="content" role="main">
<div class="container">
<h1>clickstream.js</h1>
<p class="ck-lead">jquery plugin for add an effect to a page transition</p>
<p><a href="https://github.com/blivesta/clickstream" class="btn btn- btn-lg">Download on GitHub</a></p>
<div class="ck-sns">
<iframe src="http://ghbtns.com/github-btn.html?user=blivesta&repo=clickstream&type=fork" allowtransparency="true" frameborder="0" scrolling="0" width="53" height="20"></iframe>
<iframe src="http://ghbtns.com/github-btn.html?user=blivesta&repo=clickstream&type=watch&count=false" allowtransparency="true" frameborder="0" scrolling="0" width="53" height="20"></iframe>
<a href="https://twitter.com/share" class="twitter-share-button" data-related="blivesta" data-count="none" data-hashtags="jquery,plugin">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</div>
<p class="ck-version">Author: <a href="http://blivesta.com">blivesta</a></p>
</div>
</main>
<div class="container">
<div class="ck-section">
<h1 id="clickstream-usage" class="page-header">Effect Example</h1>
<ul class="nav nav-pills">
<li><a class="btn btn-default" href="./example/fade" target="_blank">Fade</a></li>
<li><a class="btn btn-default" href="./example/right-to-left" target="_blank">Right to Left</a></li>
<li><a class="btn btn-default" href="./example/left-to-right" target="_blank">Left to Right</a></li>
<li><a class="btn btn-default" href="./example/top-to-bottom" target="_blank">Top to Bottom</a></li>
<li><a class="btn btn-default" href="./example/bottom-to-top" target="_blank">Bottom to Top</a></li>
</ul>
</div>
<div class="ck-section">
<h1 id="clickstream-usage" class="page-header">Usage</h1>
<h3>JavaScript</h3>
<pre>
// vendor js
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="http://cdn.jsdelivr.net/jquery.easing/1.3/jquery.easing.1.3.js"></script>
// clickstream
<script src="../../dist/clickstream.min.js"></script>
</pre>
<pre>
$('body').clickstream({
//遷移時のスピード。
inSpeed: 800,
outSpeed: 800,
//遷移時のディレイ時間。
inDelay : 100,
outDelay : 100,
//アニメーションさせずに遷移させたい場合に、そのaタグに付けるクラス名。
inactiveClass : 'clickstream-inactive',
//アニメーションの種類。
inEffect: 'fade', // or 'leftToRight','rightToLeft','topToBottom','bottomToTop'
outEffect: 'fade', // or 'leftToRight','rightToLeft','topToBottom','bottomToTop'
//アニメーションのイージングの種類。
//jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
inEasing: 'easeOutExpo',
outEasing: 'easeOutExpo',
//画面IN直前とOUT直前の透過量
defaultOpacity: 0,
outOpacity: 0,
//画面IN直前のポジション(fade選択時以外の時に適応)
defaultPositinX: '10%',
defaultPositinY: '10%',
//画面OUT直前のポジション(fade選択時以外の時に適応)
outPositinX: '10%',
outPositinY: '10%',
});
</pre>
</div>
</div>
<!-- Footer==================================================-->
<footer class="ck-footer" role="contentinfo">
<div class="container">
<p>Code licensed under MIT</p>
<ul class="ck-footer-links muted">
<li>author: <a href="http://blivesta.com">blivesta</a></li>
</ul>
</div>
</footer>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-21878354-1', 'blivesta.com');
ga('send', 'pageview');
</script>
</body>
</html>