-
Notifications
You must be signed in to change notification settings - Fork 147
/
basic.html
108 lines (82 loc) · 2.92 KB
/
basic.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Moving Boxes</title>
<!-- Required CSS -->
<link href="css/movingboxes.css" rel="stylesheet">
<!--[if lt IE 9]>
<link href="css/movingboxes-ie.css" rel="stylesheet" media="screen" />
<![endif]-->
<!-- Required script -->
<script src="http://code.jquery.com/jquery-1.8.0.min.js"></script>
<script src="js/jquery.movingboxes.js"></script>
<!-- Demo only -->
<link href="demo/demo.css" rel="stylesheet">
<style>
/* Dimensions set via css in MovingBoxes version 2.2.2+ */
#slider { width: 500px; }
#slider li { width: 250px; }
</style>
<script>
$(function(){
$('#slider').movingBoxes({
/* width and panelWidth options deprecated, but still work to keep the plugin backwards compatible
width: 500,
panelWidth: 0.5,
*/
startPanel : 1, // start with this panel
wrap : false, // if true, the panel will infinitely loop
buildNav : true, // if true, navigation links will be added
navFormatter : function(){ return "●"; } // function which returns the navigation text for each panel
});
});
</script>
</head>
<body>
<div id="wrapper">
<h1 class="demo-title">Moving Boxes</h1>
<nav class="main-nav">
<a class="current" href="index.html">Main Demo</a>
<a href="basic.html">Basic Demo</a>
<a class="play" href="http://jsfiddle.net/DzvcZ/">Playground</a>
<a class="git" href="https://github.com/CSS-Tricks/MovingBoxes/wiki">Documentation</a>
<a class="git" href="https://github.com/CSS-Tricks/MovingBoxes/downloads">Download</a>
<a class="issue" href="https://github.com/CSS-Tricks/MovingBoxes/issues">Issues</a>
</nav>
<!-- MovingBoxes Slider -->
<ul id="slider">
<li>
<img src="demo/1.jpg" alt="picture">
<h2>News Heading</h2>
<p>Add a short exerpt here... <a href="http://flickr.com/photos/justbcuz/112479862/">more</a></p>
</li>
<li>
<img src="demo/2.jpg" alt="picture">
<h2>News Heading</h2>
<p>Add a short exerpt here... <a href="http://flickr.com/photos/joshuacraig/2698975899/">more</a> and a whole lot more text goes here, so we can see the height adjust.</p>
</li>
<li>
<img src="demo/3.jpg" alt="picture">
<h2>News Heading</h2>
<p>Add a short exerpt here... <a href="http://flickr.com/photos/ruudvanleeuwen/468309897/">more</a></p>
</li>
<li>
<img src="demo/4.jpg" alt="picture">
<h2>News Heading</h2>
<p>Add a short exerpt here... <a href="http://flickr.com/photos/emikohime/294092478/">more</a></p>
</li>
<li>
<img src="demo/5.jpg" alt="picture">
<h2>News Heading</h2>
<p>Add a short exerpt here... <a href="http://www.flickr.com/photos/fensterbme/499006584/">more</a></p>
</li>
<li>
<img src="demo/6.jpg" alt="picture">
<h2>News Heading</h2>
<p>Add a short exerpt here... <a href="#">more</a></p>
</li>
</ul><!-- end Slider #1 -->
</div><!-- end wrapper -->
</body>
</html>