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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <h3>Prototype</h3>


<div class="hem-node-container" id="hemNodes">
  
<div class="hem-node">
  <div class="wrapper">
    <div class="writing-tip">
        <h5>Writing Tip</h5>
        <p>The more specific the better</p>
        <small>Example</small>
        <p>“We worked together at CompanyX for X years and accomplished X” </p>
    </div>
    <div class="hem-topic">
      <div class="hem-topic__icon icon drag"></div>
      <div class="hem-topic__label">Introduction</div>
    </div>
    <div class="hem-tagline">
      <input type="text" class="title" placeholder="Write your introduction..." autofocus>
    </div>
</div><!-- end wrapper -->
</div><!-- end hem node -->

<div class="hem-node">
  <div class="wrapper">
    <div class="writing-tip">
        <h5>Writing Tip</h5>
        <p>The more specific the better</p>
        <small>Example</small>
        <p>“We worked together at CompanyX for X years and accomplished X” </p>
    </div>
    <div class="hem-topic">
      <div class="hem-topic__icon icon drag"></div>
      <div class="hem-topic__label">Context</div>
    </div>
    <div class="hem-tagline">
      <input type="text" class="title" placeholder="Set the context..." />
    </div>
</div><!-- end wrapper -->
</div><!-- end hem node -->


<div class="hem-node">
  <div class="wrapper">
    <div class="writing-tip">
        <h5>Writing Tip</h5>
        <p>The more specific the better</p>
        <small>Example</small>
        <p>“We worked together at CompanyX for X years and accomplished X” </p>
    </div>
    <div class="hem-topic">
      <div class="hem-topic__icon icon drag"></div>
      <div class="hem-topic__label">Problem</div>
    </div>
    <div class="hem-tagline">
      <input type="text" class="title" placeholder="State the problem..." />
    </div>
</div><!-- end wrapper -->
</div><!-- end hem node -->

<div class="hem-node">
  <div class="wrapper">
    <div class="writing-tip">
        <h5>Writing Tip</h5>
        <p>The more specific the better</p>
        <small>Example</small>
        <p>“We worked together at CompanyX for X years and accomplished X” </p>
    </div>
    <div class="hem-topic">
      <div class="hem-topic__icon icon drag"></div>
      <div class="hem-topic__label">Solution</div>
    </div>
    <div class="hem-tagline">
      <input type="text" class="title" placeholder="Show the solution..." />
    </div>
</div><!-- end wrapper -->
</div><!-- end hem node -->

<div class="hem-node">
  <div class="wrapper">
     <div class="writing-tip">
        <h5>Writing Tip</h5>
        <p>The more specific the better</p>
        <small>Example</small>
        <p>“We worked together at CompanyX for X years and accomplished X” </p>
    </div>
    <div class="hem-topic">
      <div class="hem-topic__icon icon drag"></div>
      <div class="hem-topic__label">Product</div>
    </div>
    <div class="hem-tagline">
      <input type="text" class="title" placeholder="Demo the product..." />
    </div>
</div><!-- end wrapper -->
</div><!-- end hem node -->

<div class="hem-node">
  <div class="wrapper">
     <div class="writing-tip">
        <h5>Writing Tip</h5>
        <p>The more specific the better</p>
        <small>Example</small>
        <p>“We worked together at CompanyX for X years and accomplished X” </p>
    </div>
    <div class="hem-topic">
      <div class="hem-topic__icon icon drag"></div>
      <div class="hem-topic__label">Call to Action</div>
    </div>
    <div class="hem-tagline">
      <input type="text" class="title" placeholder="Next steps..." />
    </div>
</div><!-- end wrapper -->
</div><!-- end hem node -->
  
</div>

<div class="floating-buttons">
  <div class="container">
    <button class="ghost js-ghost">Add / Edit Topics</button>
    <button class="primary">Next: Visualize it</button>
  </div>
</div>

<div class="topic-menu">
  <h3>Topics</h3>
  <h5>Recommended</h5>
  <ul>
    <li>
      <a href="#" class="topic">
              <div class="icon white-drag"></div>
        Introduction</a>
    </li>
     <li>
      <a href="#" class="topic">              <div class="icon white-drag"></div>
Context</a>
    </li>
       <li>
      <a href="#" class="topic">              <div class="icon white-drag"></div>
Problem</a>
    </li>
           <li>
      <a href="#" class="topic">              <div class="icon white-drag"></div>
Solution</a>
    </li>
           <li>
      <a href="#" class="topic">              <div class="icon white-drag"></div>
Product</a>
    </li>
           <li>
      <a href="#" class="topic">              <div class="icon white-drag"></div>
Call to Action</a>
    </li>
  </ul>
  
  <h5>All</h5>
  <ul>
    <li>
      <a href="#" class="topic"><div class="circle"></div>Action Plan</a>
    </li>
     <li>
      <a href="#" class="topic"><div class="circle"></div>Agenda</a>
    </li>
      <li>
      <a href="#" class="topic"><div class="circle"></div>Competition</a>
    </li>
          <li>
      <a href="#" class="topic"><div class="circle"></div>Context</a>
    </li>
              <li>
      <a href="#" class="topic"><div class="circle"></div>New Idea</a>
    </li>
              <li>
      <a href="#" class="topic"><div class="circle"></div>Existing Customers</a>
    </li>
                  <li>
      <a href="#" class="topic"><div class="circle"></div>Introduction</a>
    </li>
                      <li>
      <a href="#" class="topic"><div class="circle"></div>Objective</a>
    </li>
                          <li>
      <a href="#" class="topic"><div class="circle"></div>Next Steps</a>
    </li>
  </ul>
</div>
            
          
!
            
              body,
html {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto,
    Ubuntu;
  background: white;
}


*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  -webkit-transition: all 0.25s ease-in-out;
}

h3 {
  display: block;
  margin: 2em 0;
  text-align: center;
}

.hem-node-container {
  padding-bottom: 5em;
}

input {
  display: block;
  width: 100%;
  border: none;
  outline: none;
  font-size: 17px;
  background: transparent;
  caret-color: #00BCD4;
  
  &.title {
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -0.5px;
    max-height: 55px;
    margin-bottom: 0.5em;
  }
  

  &:hover {
    &::placeholder {
      color: #999;
    }
  }

  &::placeholder {
    color: #ccc;
  }
}

.hem-node {
  position: relative;
  padding: 1.5em 0 1em;
  width: 100%;
  background: white;
  
  // &:hover,
  // &:focus,
  &.active {
    background: #f8f8f8;
  }

  .wrapper {
    position: relative;
    width: 740px;
    margin: 0 auto;
    
    &.show-tip {
      > .writing-tip {
        display: block;
          transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  -webkit-transition: all 0.25s ease-in-out;
      }
    }
   }
  
  .writing-tip {
    display: none;
    position: absolute;
    top: 25px;
    left: -265px;
    width: 240px;
    background: #060534;
    border-radius: 5px;
    color: white;
    padding: 1.25em;
    z-index: 999;
   transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  -webkit-transition: all 0.25s ease-in-out;
    
    &:after {
      left: 100%;
      top: 10%;
      border: solid transparent;
      content: " ";
      height: 0;
      width: 0;
      position: absolute;
      pointer-events: none;
      border-color: rgba(136, 183, 213, 0);
      border-left-color: #060534;
      border-width: 7px;
      margin-top: -7px;
    }
    
    h5 {
      font-weight: 700;
      margin-bottom: 0.25em;
    }
    p {
      font-size: 15px;
      line-height: 22px;
      opacity: 0.8;
    }
    
    small {
      display: block;
      margin: 1em 0 0.5em;
      color: #A9A9D7;
      font-weight: 600;
    }
  }
}



.hem-topic {
  position: relative;
  left: -20px;
  display: flex;
  padding: 5px 0;
  cursor: pointer;
  
  &__icon {
    
  }
  
  &__label {
    position: relative;
    top: 2px;
    color: #000000;
  }
  
}

// Floating buttons

.floating-buttons {
  width: 100%;
  background: white;
  padding: 1em;

  
  .container {
    position: relative;
    width: 740px;
    margin: 0 auto;
  }

  z-index: 998;
  
  .primary {
    float: right;
  }
  
}

// Icons

.icon {
  transition: all 0.5s ease;
  display: block;
  width: 20px;
  height: 20px;
  opacity: .2;
  background-repeat: none;
  
  &:hover {
    transition: all 0.5s ease;
    opacity: 1;
    cursor: pointer;
  }
}


.topic-menu {
  width: 450px;
  position: fixed;
  top: 0;
  left: -450px;
  bottom: 0;
  z-index: 999;
  background: #15262D;
  padding: 2em;
  color: white;
  overflow: hidden;
  overflow-y: scroll;
  
  h3 {
    font-weight: 600;
    text-align: left;
    font-size: 1.5em;
    margin: 0 0 1em;
  }
  
  h5 {
    text-transform: uppercase;
    font-weight: 600;
    color: #7E898D;
    margin-bottom: 0.5em;
  }
  
  ul {
    margin: 0 0 2em 0;
    padding: 0;
    
    li {
      display: block;
    }
    
    a {
      display: block;
      border: 1px solid #7E898D;
      color: white;
      padding: 1em;
      margin-bottom: 0.5em;
      border-radius: 5px;
      text-decoration: none;
      vertical-align: middle;
      
      div {
        display: inline-block;
        
        &.circle {
          display: inline-block;
          width: 20px;
          height: 20px;
          margin-right: 5px;
          border: 1px solid white;
          border-radius: 500px;
        }
      }
      
      &:hover {
        background: #7E898D;
        color: white;
        opacity: 1;
      }
    }
  }
}


.drag {
		background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOS4xNjY1OSAxNS4wMDAyQzkuMTY2NTkgMTUuOTE2OCA4LjQxNjU5IDE2LjY2NjggNy40OTk5MiAxNi42NjY4QzYuNTgzMjUgMTYuNjY2OCA1LjgzMzI1IDE1LjkxNjggNS44MzMyNSAxNS4wMDAyQzUuODMzMjUgMTQuMDgzNSA2LjU4MzI1IDEzLjMzMzUgNy40OTk5MiAxMy4zMzM1QzguNDE2NTkgMTM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jkxNjggMTQuMTY2NiAxMC4wMDAyQzE0LjE2NjYgOS4wODM1IDEzLjQxNjYgOC4zMzM1IDEyLjQ5OTkgOC4zMzM1Wk0xMi40OTk5IDEzLjMzMzVDMTEuNTgzMyAxMy4zMzM1IDEwLjgzMzMgMTQuMDgzNSAxMC44MzMzIDE1LjAwMDJDMTAuODMzMyAxNS45MTY4IDExLjU4MzMgMTYuNjY2OCAxMi40OTk5IDE2LjY2NjhDMTMuNDE2NiAxNi42NjY4IDE0LjE2NjYgMTUuOTE2OCAxNC4xNjY2IDE1LjAwMDJDMTQuMTY2NiAxNC4wODM1IDEzLjQxNjYgMTMuMzMzNSAxMi40OTk5IDEzLjMzMzVaIiBmaWxsPSJibGFjayIvPjwvc3ZnPg==);

}


button,
.btn,
[role="button"] {
  
    margin: 0;
    padding: 0;
    width: auto;
    overflow: visible;
    font: inherit;
    line-height: normal;
    -webkit-font-smoothing: inherit;
    -moz-osx-font-smoothing: inherit;
    -webkit-appearance: none;
    text-decoration: none;
    height: 50px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.25px;
    text-align: center;
    display: inline-block;
    border-radius: 5px;
    padding: 0.80em 2em;
    border: 2px solid transparent;
    vertical-align: middle;
  
    // Define Styles
    &.primary {
      background: #55EAFD;
      border: 1px solid #55EAFD;
      color: #111111;
      
      &:hover,
      &:focus {
        background: #00E2FF;
        border: 1px solid #00E2FF;
      }
    }
  
  
    &.black {
      background: #333333;
      color: #FFFFFF;
    
      &:hover,
      &:focus {
        background: #000000;
      }
    }
  
  
    &.white {
      background: #FFFFFF;
      color: #111111;
      border: 2px solid #cecece;
      
      &:hover,
      &:focus {
        border-color: #111111;
      }
    }
  
  &.ghost {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #00E2FF;
    
    &:hover {
      background: #CDF9FF;
      border-color: #CDF9FF;
    }
    
    
  }
  
    // Define Sizes
    &.small {
      height: 40px;
      padding: 0.45em 1.5em;
    }
  
    &.disabled,
    &:disabled {
        background: #E5E5E5;
        border-color: #E5E5E5;
        color: #A1A1A1;
        cursor: not-allowed;
      
        &:focus,
        &:hover {
          background: #E5E5E5;
          border-color: #E5E5E5;
          color: #A1A1A1;
        }
    }
}


.white-drag {
	background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTEgMThDMTEgMTkuMSAxMC4xIDIwIDguOTk5OTcgMjBDNy44OTk5NyAyMCA2Ljk5OTk3IDE5LjEgNi45OTk5NyAxOEM2Ljk5OTk3IDE2LjkgNy44OTk5NyAxNiA4Ljk5OTk3IDE2QzEwLjEgMTYgMTEgMTYuOSAxMSAxOFpNOC45OTk5NyAxMEM3Ljg5OTk3IDEwIDYuOTk5OTcgMTAuOSA2Ljk5OTk3IDEyQzYuOTk5OTcgMTMuMSA3Ljg5OTk3IDE0IDguOTk5OTcgMTRDMTAuMSAxNCAxMSAxMy4xIDExIDEyQzExIDEwLjkgMTAuMSAxMCA4Ljk5OTk3IDEwWk04Ljk5OTk3IDQuMDAwMDNDNy44OTk5NyA0LjAwMDAzIDYuOTk5OTcgNC45MDAwMyA2Ljk5OTk3IDYuMDAwMDNDNi45OTk5NyA3LjEwMDAzIDcuODk5OTcgOC4wMDAwMyA4Ljk5OTk3IDguMDAwMDNDMTAuMSA4LjAwMDAzIDExIDcuMTAwMDMgMTEgNi4wMDAwM0MxMSA0LjkwMDAzIDEwLjEgNC4wMDAwMyA4Ljk5OTk3IDQuMDAwMDNaTTE1IDguMDAwMDNDMTYuMSA4LjAwMDAzIDE3IDcuMTAwMDMgMTcgNi4wMDAwM0MxNyA0LjkwMDAzIDE2LjEgNC4wMDAwMyAxNSA0LjAwMDAzQzEzLjkgNC4wMDAwMyAxMyA0LjkwMDAzIDEzIDYuMDAwMDNDMTMgNy4xMDAwMyAxMy45IDguMDAwMDMgMTUgOC4wMDAwM1pNMTUgMTBDMTMuOSAxMCAxMyAxMC45IDEzIDEyQzEzIDEzLjEgMTMuOSAxNCAxNSAxNEMxNi4xIDE0IDE3IDEzLjEgMTcgMTJDMTcgMTAuOSAxNi4xIDEwIDE1IDEwWk0xNSAxNkMxMy45IDE2IDEzIDE2LjkgMTMgMThDMTMgMTkuMSAxMy45IDIwIDE1IDIwQzE2LjEgMjAgMTcgMTkuMSAxNyAxOEMxNyAxNi45IDE2LjEgMTYgMTUgMTZaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==);

}
            
          
!
            
              $( document ).ready(function() {

    //$('.hem-node').first().addClass('active');
   
 
  // Fade the coach mark in on click
  // $('.title').click(function(){
  //   $('.writing-tip').fadeIn("fast");
  // });
 
  
$(".title").focus(function(){
  
    // Toggle Stuff
      $(this).parent().parent().parent().toggleClass("active");
      $(this).parent().parent().toggleClass("show-tip");
  
  
        }).blur(function(){
      
      $(this).parent().parent().parent().toggleClass("active");
      $(this).parent().parent().toggleClass("show-tip");
  
  // Toggle Writing Tips
  });
  
  
  // Show Topics
  
   $('.js-ghost').click(function(){
        $('.topic-menu').animate({left: "0px"}, 250);
    });
  
     $('.hem-node').click(function(){
        $('.topic-menu').animate({left: "-450px"}, 250);
    });
});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console