Skip to content

Instantly share code, notes, and snippets.

@neall
Last active January 4, 2016 07:39
Show Gist options
  • Save neall/8590026 to your computer and use it in GitHub Desktop.
Save neall/8590026 to your computer and use it in GitHub Desktop.
#previous {
background: blue;
height: 10px;
}
#next {
background: green;
height: 10px;
}
#timeline-container {
position: relative;
background: pink;
height: 200px;
overflow: hidden;
}
#timeline {
border-left: solid 3px black;
-webkit-transform: rotate(-90deg) translate(-200px, 0);
-webkit-transform-origin: 0 0;
display: block;
padding: 0;
margin: 0;
}
#timeline li {
padding: 0;
margin: 0 1px 10em;
display: block;
overflow: show;
width: 2em;
height: 0.5em;
border-bottom: solid 3px black;
-webkit-transform: rotate(45deg);
-webkit-transform-origin: 0 50%;
}
#timeline li span {
padding-left: 2.5em;
display: block;
width: 500px;
}
<!DOCTYPE html>
<html>
<head>
<link rel=stylesheet href=app.css>
</head>
<body>
<div id=previous></div>
<div id=timeline-container>
<ul id=timeline>
<li><span>A thing happens</span></li>
<li><span>some more stuff</span></li>
<li><span>other things</span></li>
</ul>
</div>
<div id=next></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment