cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div id="container">
	<svg id="svg"></svg>
	<h1>Timeline-line</h1>
	
	<div class="block">
		<p>An example of a quick setup for timeline-line</p>
		<a href="http://ste.vg/timeline-line.js/" target="_blank">ste.vg/timeline-line.js</a>
	</div>
	<div class="block">Accusamus voluptates vel, laborum dolores autem quae nisi. Accusamus quam natus, maxime, corrupti, doloribus minus minima ratione quos consequatur soluta ducimus autem aliquid esse at fugit perspiciatis dolor debitis magnam!</div>
	<div class="block">Facere, error consectetur animi deserunt laudantium ab, placeat sit, qui voluptatum perferendis maiores omnis eveniet mollitia eius nam! Dicta quod doloribus dolore consequatur hic quos aperiam tempore iusto tenetur quam!</div>
	<div class="block">
		<p>Eveniet debitis in, vel dolor dolorem cum dolorum consequuntur architecto! Odio ab repellat eligendi praesentium eveniet officiis voluptatum aperiam error iure pariatur, nemo magni! Placeat at esse deserunt beatae eos?</p>
<!-- 		<img src='https://images.unsplash.com/photo-1437815488172-dc7cba4334a7?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&ixid=eyJhcHBfaWQiOjE0NTg5fQ&s=580f43dd138d72d8a1cbbc0b7152b6db' alt=''> -->
		<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Molestiae error ducimus enim explicabo aut, nisi magni eos voluptatem quo tenetur quaerat, unde id velit aperiam inventore, impedit ab earum temporibus.</p>
	</div>
	<div class="block">Dolore placeat officia illo corporis aut eaque quam odit porro optio veniam quos unde eligendi, provident eveniet nulla laboriosam expedita nobis possimus sed, necessitatibus ullam debitis iusto. Ducimus, ullam sed?</div>
	
</div>
            
          
!
            
              @import 'https://fonts.googleapis.com/css?family=Catamaran';

$color: lightseagreen;

html, body
{
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: 'Catamaran', sans-serif;
}

body {
  	background: #eee;
  	background: linear-gradient(to left, #ddd , #eee);
}

#container
{
	margin: 0 auto;
	max-width: 600px;
	padding: 10%;
	position: relative;
	top: 0;
}

#svg
{
	pointer-events: none;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	
	path
	{
		fill: none;
		stroke-width: 3;
		stroke: $color;
		stroke-dasharray: 6, 5;
	}
}

h1
{
	color: $color;
	//text-align: right;
	font-size: 3rem;
	margin: 0;
	padding: 0;
}

.block
{
	padding: 50px;
	position: relative;
	
	&:nth-child(even){ margin-right: 20%; text-align: right;}
	&:nth-child(odd) { margin-left: 20%; }
}
            
          
!
            
              new Timeline(
	document.getElementById('svg'), 
	Timeline.fromClass('block', 'left', 80)
);
            
          
!
999px
Loading ..................

Console