b1njtimeline
v1.0.0
Published
b1njTimeline is a jQuery plugin that makes use of Moment.js and Html5 <time> element to create a simple and clean timeline on the web page. The event will be automatically placed on the timeline based on <time> datetime attribute.
Downloads
2
Readme
B1nj Timeline
B1nj Timeline is a very simple jQuery plugin. The event is automatically placed on the timeline.
Getting Started
Include Css, html and script jQuery, moment, plugin on a page. This is all.
CSS
<link rel="stylesheet" media="screen" href="css/b1njTimeline.css">
HTML
<ol id="timeline">
<li>
<time datetime="1991-10-01">July 1995</time>
<p>Naissance</p>
<div class="description">
<p>Description...</p>
</div>
</li>
<li>
<time datetime="1994-10">Septembre 1999</time>
<p>Rentrée des classes !</p>
</li>
</ol>
Format date is YYYY-MM-DD. Date before Jesus Christ d'ont work.
jQuery
<script src="jquery.js"></script>
<script src="moment.min.js"></script>
<script src="jquery.b1njTimeline.js"></script>
<script>
$(function() {
$('#timeline').b1njTimeline({
'height' : 600
});
});
</script>
You must adjust manually the height of timeline width the param height.
Design by and css inspired @csswizardry HTML/CSS timeline