summaryrefslogtreecommitdiff
path: root/static/website/bootstrap-css/bower_components/smooth-scroll/docs/index.html
blob: ab6d52c3ccf6ca5a1be94c0b4ad0a49dabe5fa53 (plain)
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
<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="utf-8">
		<title>Smooth Scroll</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">

		<!-- stylesheets -->
		<link rel="stylesheet" href="assets/css/custom.css" type="text/css">
	</head>

	<body>

		<main class="container" id="top">

			<nav>
				<h1>Smooth Scroll</h1>
				<p><a href="https://github.com/cferdinandi/smooth-scroll">GitHub</a></p>
				<hr>
			</nav>

			<section>
	<p>
		<strong>Linear</strong><br>
		<a data-scroll data-options='{ "easing": "linear" }' href="#bazinga">Linear (no other options)</a><br>
	</p>

	<p>
		<strong>Ease-In</strong><br>
		<a data-scroll data-options='{ "easing": "easeInQuad" }' href="#bazinga">Quad</a><br>
		<a data-scroll data-options='{ "easing": "easeInCubic" }' href="#bazinga">Cubic</a><br>
		<a data-scroll data-options='{ "easing": "easeInQuart" }' href="#bazinga">Quart</a><br>
		<a data-scroll data-options='{ "easing": "easeInQuint" }' href="#bazinga">Quint</a>
	</p>

	<p>
		<strong>Ease-In-Out</strong><br>
		<a data-scroll data-options='{ "easing": "easeInOutQuad" }' href="#bazinga">Quad</a><br>
		<a data-scroll data-options='{ "easing": "easeInOutCubic" }' href="#bazinga">Cubic</a><br>
		<a data-scroll data-options='{ "easing": "easeInOutQuart" }' href="#bazinga">Quart</a><br>
		<a data-scroll data-options='{ "easing": "easeInOutQuint" }' href="#bazinga">Quint</a>
	</p>

	<p>
		<strong>Ease-Out</strong><br>
		<a data-scroll data-options='{ "easing": "easeOutQuad" }' href="#bazinga">Quad</a><br>
		<a data-scroll data-options='{ "easing": "easeOutCubic" }' href="#bazinga">Cubic</a><br>
		<a data-scroll data-options='{ "easing": "easeOutQuart" }' href="#bazinga">Quart</a><br>
		<a data-scroll data-options='{ "easing": "easeOutQuint" }' href="#bazinga">Quint</a>
	</p>

	<p>
		.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>
		.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>
		.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.
	</p>

	<p id="bazinga"><a data-scroll href="#1@#%^-bottom">Bazinga!</a></p>

	<p>
		.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>
		.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>
		.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.
	</p>

	<p id="1@#%^-bottom"><a data-scroll data-options='{ "easing": "easeOutCubic" }' href="#">Back to the top</a></p>
			</section>
		</main>

		<!-- Javascript -->
		<script src='dist/js/buoy.js'></script>
		<script src='dist/js/smooth-scroll.js'></script>
		<script>
			smoothScroll.init({
				speed: 1000,
				easing: 'easeInOutCubic',
				offset: 0,
				updateURL: true,
				callback: function ( toggle, anchor ) {}
			});
		</script>


	</body>
</html>