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.

+ add another resource


Babel includes JSX processing.

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.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div class="horizontal" id="map-wrapper">
  <svg xmlns=""
			style="position:absolute;width:100%;height:100%;z-index:0"> <path id="solid-line" fill="none" stroke="#F7C700" stroke-width="1px"/>
 <div class ="horizontal">
    <div class="point start">
    <div class="point one">
    <div class="point two">
    <div class="point three">
    <div class="point four">
    <div class="point five">



body {
  background: #f4f4f4;
  font-family: 'Open Sans', sans-serif;
  margin: 0 auto;
  padding: 0;

#map-wrapper div {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 30px;

#map-wrapper div:nth-child(even) button {
  float: right;
    background: red;


.start button {
/*   text-align: left;
  position: absolute; */

.horizontal {
 height: 100vh;
 width: 100vw;
 list-style: none;
 background-color: blue;
 display: -webkit-box;
 display: -moz-box;
 display: -ms-flexbox;
 display: -webkit-flex;
 display: flex;
 justify-content: space-around;
 flex-direction: row;

.point {
  width: 15%;
 height: 30px;
  -moz-flex: 1 0 auto;
  -webkit-flex: 1 0 auto;
  flex: 1 0 auto;
  background-color: red;


                var trail = $('#solid-line');
// var animated = $('#animated-line');

// beginning coordinates for the solid line
var startx = $( ".start button" ).position().left;
var starty = $( ".start button" ).position().top;
var path = 'M ' + startx  + ',' + starty;
// for each button, find the coordinates and add them to the SVG
$( "button" ).each(function( index ) {
  if( 0 == index ) {
    var left = $(this).position().left;
    var top = $(this).position().top;
    // C needs two sets of coordinates to make a quadratic Bezier curve
    path += ' C343,193 398,224, ' + top + ',' + left + ' ';
  } else {
    var left = $(this).position().left;
    var top = $(this).position().top;
    if (index % 2 === 0) {
      // even, map marker on left
      path += 'S500,' + (top-50) + ', ' + left + ',' + top + ' ';
    } else {
      // odd, map marker on right 
      path += 'S600,' + (top-50) + ', ' + (left-50) + ',' + top  + ' ';


trail.attr('d', path);