Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 145
Expand file tree
/
Copy pathbasic.html
More file actions
Latest commit
108 lines (82 loc) · 2.92 KB
/
Copy pathbasic.html
File metadata and controls
108 lines (82 loc) · 2.92 KB
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>
<htmllang="en">
<head>
<metacharset="utf-8">
<title>Moving Boxes</title>
<!-- Required CSS -->
<linkhref="css/movingboxes.css" rel="stylesheet">
<!--[if lt IE 9]>
<link href="css/movingboxes-ie.css" rel="stylesheet" media="screen" />
<![endif]-->
<!-- Required script -->
<scriptsrc="http://code.jquery.com/jquery-1.8.0.min.js"></script>
<scriptsrc="js/jquery.movingboxes.js"></script>
<!-- Demo only -->
<linkhref="demo/demo.css" rel="stylesheet">
<style>
/* Dimensions set via css in MovingBoxes version 2.2.2+ */
#slider { width:500px; }
#sliderli { 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>
<divid="wrapper">
<h1class="demo-title">Moving Boxes</h1>
<navclass="main-nav">
<aclass="current" href="index.html">Main Demo</a>
<ahref="basic.html">Basic Demo</a>
<aclass="play" href="http://jsfiddle.net/DzvcZ/">Playground</a>
<aclass="git" href="https://github.com/CSS-Tricks/MovingBoxes/wiki">Documentation</a>
<aclass="git" href="https://github.com/CSS-Tricks/MovingBoxes/downloads">Download</a>
<aclass="issue" href="https://github.com/CSS-Tricks/MovingBoxes/issues">Issues</a>
</nav>
<!-- MovingBoxes Slider -->
<ulid="slider">
<li>
<imgsrc="demo/1.jpg" alt="picture">
<h2>News Heading</h2>
<p>Add a short exerpt here... <ahref="http://flickr.com/photos/justbcuz/112479862/">more</a></p>
</li>
<li>
<imgsrc="demo/2.jpg" alt="picture">
<h2>News Heading</h2>
<p>Add a short exerpt here... <ahref="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>
<imgsrc="demo/3.jpg" alt="picture">
<h2>News Heading</h2>
<p>Add a short exerpt here... <ahref="http://flickr.com/photos/ruudvanleeuwen/468309897/">more</a></p>
</li>
<li>
<imgsrc="demo/4.jpg" alt="picture">
<h2>News Heading</h2>
<p>Add a short exerpt here... <ahref="http://flickr.com/photos/emikohime/294092478/">more</a></p>
</li>
<li>
<imgsrc="demo/5.jpg" alt="picture">
<h2>News Heading</h2>
<p>Add a short exerpt here... <ahref="http://www.flickr.com/photos/fensterbme/499006584/">more</a></p>
</li>
<li>
<imgsrc="demo/6.jpg" alt="picture">
<h2>News Heading</h2>
<p>Add a short exerpt here... <ahref="#">more</a></p>
</li>
</ul><!-- end Slider #1 -->
</div><!-- end wrapper -->
</body>
</html>