"Timeline 2.1 with images and responsive"
Bootstrap 3.1.0 Snippet by SrPatinhas

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
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="page-header text-center">
<h1 id="timeline">Timeline 2.1</h1>
</div>
<ul class="timeline">
<li>
<div class="timeline-badge primary"><a><i class="glyphicon glyphicon-record" rel="tooltip" title="11 hours ago via Twitter" id=""></i></a></div>
<div class="timeline-panel">
<div class="timeline-heading">
<img class="img-responsive" src="http://lorempixel.com/1600/500/sports/2" />
</div>
<div class="timeline-body">
<p>Mussum ipsum cacilds, vidis litro abertis. Consetis adipiscings elitis. Pra lá , depois divoltis porris, paradis. Paisis, filhis, espiritis santis. Mé faiz elementum girarzis, nisi eros vermeio, in elementis mé pra quem é amistosis quis leo. Manduma pindureta quium dia nois paga. Sapien in monti palavris qui num significa nadis i pareci latim. Interessantiss quisso pudia ce receita de bolis, mais bolis eu num gostis.</p>
</div>
<div class="timeline-footer">
<a><i class="glyphicon glyphicon-thumbs-up"></i></a>
<a><i class="glyphicon glyphicon-share"></i></a>
<a class="pull-right">Continuar Lendo</a>
</div>
</div>
</li>
<li class="timeline-inverted">
<div class="timeline-badge primary"><a><i class="glyphicon glyphicon-record invert" rel="tooltip" title="11 hours ago via Twitter" id=""></i></a></div>
<div class="timeline-panel">
<div class="timeline-heading">
<img class="img-responsive" src="http://lorempixel.com/1600/500/sports/2" />
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
.timeline {
list-style: none;
padding: 20px 0 20px;
position: relative;
}
.timeline:before {
top: 0;
bottom: 0;
position: absolute;
content: " ";
width: 3px;
background-color: #eeeeee;
left: 50%;
margin-left: -1.5px;
}
.timeline > li {
margin-bottom: 20px;
position: relative;
width: 50%;
float: left;
clear: left;
}
.timeline > li:before,
.timeline > li:after {
content: " ";
display: table;
}
.timeline > li:after {
clear: both;
}
.timeline > li:before,
.timeline > li:after {
content: " ";
display: table;
}
.timeline > li:after {
clear: both;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$(document).ready(function(){
var my_posts = $("[rel=tooltip]");
var size = $(window).width();
for(i=0;i<my_posts.length;i++){
the_post = $(my_posts[i]);
if(the_post.hasClass('invert') && size >=767 ){
the_post.tooltip({ placement: 'left'});
the_post.css("cursor","pointer");
}else{
the_post.tooltip({ placement: 'rigth'});
the_post.css("cursor","pointer");
}
}
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

Hi all, please how i can install this? thx

HICHEM TIGS () - 9 years ago - Reply 0


????????????????????????

HICHEM TIGS () - 9 years ago - Reply 0


Awesome snippet! Nice job It I will be using it for definite.

David Simpson () - 10 years ago - Reply 0


Thank you for a great work! I'm trying to use in one of the projects for my client. Here are some sample pages where I'm using this.

http://theysaidso.com/bible

http://theysaidso.com/bible...

If you notice after 5th timeline node the 6 & 7 are not in order ( in terms of just the real estate area where they appear). I tried few things but no luck. What am I missing?

Johny () - 10 years ago - Reply 0


Thank you! I am using this, already. :)

Alex () - 10 years ago - Reply 0


I would use this, but Facebook patented their timeline. So if you got big Facebook could sue you for using this.

Darky () - 10 years ago - Reply 0


I believe Facebook's patent is very very specific, not just any "timeline" design. Could you post a link to the patent? I remember it being explicitly for social feed and not just for any list that looks like a sequence of events.

maxsurguy () - 10 years ago - Reply 0


Facebook's Patent link: http://patft.uspto.gov/neta...

Ethan () - 10 years ago - Reply 0


Thanks! Looking at the patent, it is very specifically for a social network timeline, with much more details than just any chronological list of things. I believe a chronological list like this snippet doesn't equal to the information in the patent. Where's the social aspect of the snippet, where is the backend service, etc etc.

maxsurguy () - 10 years ago - Reply 0


hey now plzz tell me, using it will break the patient or not?

Victor Davis Lenz () - 9 years ago - Reply 0


awesome sir SrPatinhas, i really appreciate your work. i'm going to use this in my project. so thank you very much for this great snippet.

Rahul giri () - 10 years ago - Reply 0


I'm using this for sure! GREAT work!

Travis Layne () - 10 years ago - Reply 0


Nice job I wanted to do this myself but didn't know enough. Thanks!

Sean Kelly () - 10 years ago - Reply 0