Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Name List</title>
        <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
      <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
  
    </head>
    <body>
      <div class="wrapper">
        <div id="name-list-main">
        <div class="slide-down"><h1>{{ mainHeader.toLocaleUpperCase() }}</h1></div>
          <div class="row">
            <div class="col-md-6 right-border">
              <h2>{{ leftHeader.toLocaleUpperCase() }}</h2>
              <hr>
          <ul class="checklist">
            <li v-for="(item,key) in items"      :id="key"> 
               <label :for="item.item"  @click="toggle">   
              <input type="checkbox" :value="key" v-model="names">
                 <span>{{item}}</span></label>  
            </li>
          </ul>
            </div>
            <div class="col-md-6">
                <h2>{{ rightHeader.toLocaleUpperCase() }}</h2>
              <hr>
          <pre>
<ul class="checkedNames">
<li v-for="name in names"> 
<label> {{ name }}</label>  
</li>
</ul>
          </pre>
            </div>
      </div>
      </div>
      <script src="https://unpkg.com/vue"></script>
   
    </body>
</html>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Baloo+Thambi&display=swap');
.wrapper
{
  background: #7FDBFF;
  box-shadow:2px 2px 15px #000000;
  width:100%;
}
#name-list-main
{
  max-width:800px;
  width:100%;
  margin:0 auto;
  display:block;
  background-color:#ffffff;
  padding:10px 20px;
  box-shadow: 5px 2px 20px #000000;
}
#name-list-main h1 {
  display: inline-block;
  color: #ffffff;
  text-align: center;
 animation: fly 1s linear;
  animation-iteration-count:1;
  text-align: center;
  width: 100%;
  margin: 0px auto;
  color: #0d47a1;
  font-size: 60px;
  letter-spacing: 5px;
  position: relative;
  font-family: 'Baloo Thambi', cursive;

}
#name-list-main h2{
  text-align: center;
  width: 100%;
  margin: 0px auto;
  color: #0d47a1;
  letter-spacing: 3px;
  position: relative;
  margin-top: 0px;
  font-family: 'Baloo Thambi', cursive;
}
/* Move it (define the animation) */
@keyframes fly {
 0%   { 
 transform: translateY(-200%); 		
 }
 100% { 
 transform: translateY(0%); 
 }
}
.active {
 background-color: #E8F685;
    transition:all 0.5s ease;
}
ul li
{
  list-style-type:none;
  color:#000000;
  font-weight:500;
  font-size:16px;
}
/*** custom checkboxes ***/
 input[type=checkbox] {
     position: relative;
    top: -4px;
    right: 2px;
   border:0px;
   border-top:1px solid #ffffff;
}
/* to hide the checkbox itself */
 label>input[type=checkbox]:before {
     position: relative;
    background-color: #ffffff;
    height: 100%;
width: 100%;
       border-top: 1px solid #ffffff;
    font-family: FontAwesome;
    display: inline-block;
    content:"\f096";
    letter-spacing: 10px;
}
/* space between checkbox and label */
 label>input[type=checkbox]:checked:before {
     font-family: FontAwesome;
    display: inline-block;
    content:"\f046";
    letter-spacing: 5px;
   border-top:1px solid #ffffff;
}
/* allow space for check mark */

pre {
  overflow-x: auto;
  white-space: normal;  
}

ul.checkedNames label:before
{
 font-family: FontAwesome;
 content:"\f101";
} 
ul.checkedNames label
{
  font-size:16px;
  color:#40b9cf;
}
hr {
	border-top: 1px solid #8c8b8b;
	border-bottom: 1px solid #fff;
}
.right-border
{
  border-right:2px solid #cccccc;
}
hr {
  margin-top:0.3em;
  margin-bottom:0.3em;
	border-top: 1px solid #8c8b8b;
	border-bottom: 1px solid #fff;
}
hr:after {
	content: '';
	display: block;
	margin-top: 2px;
	border-top: 1px solid #8c8b8b;
	border-bottom: 1px solid #fff;
}
@media only screen and (max-width: 600px) {
  #name-list-main
  {
    width:90%;
  }
}
              
            
!

JS

              
                

var nameList = new Vue({
    el: '#name-list-main',
      data: {
          mainHeader: 'Name List',
          leftHeader: 'List of Available Names',
          rightHeader: 'List of Selected Names',
          items: {
  '01bbb998-af3d-47a4-b0ff-e67d033d80e9': 'Luz Ballard',
  '01021494-f157-4183-964c-6b0ddc964ab8': 'Corey Johnson',
  '97a2daa4-406b-4b1c-831e-bdfd90b224f2': 'Andrew Torres',
  '6256ba85-b59f-40b9-8715-406cc54d7f05': 'Nichole Wilson',
  '5c0c746c-ec56-4fb7-8b32-066b64d70611': 'Nancy Hall',
  'c103b480-8efb-450f-9141-6a8037de2348': 'Agnes Lorenzen',
  '4e0cc3dc-fce9-45d9-85c7-a3ae5cb0ce57': 'Donald Hyde',
  'f80af139-5c68-4475-8cb6-ced7e38c6f43': 'Dennis Fuller',
  '5073359e-b228-4852-b1a3-3f2edfc8672f': 'Francis Hodgkins',
  '9c9a3cc8-044e-43d0-87ff-58a6b44eca53': 'David McLain', 
            },
        names: [],
        txtInput: ''
  },
  methods: {
 toggle: function( event ) {
   event.target.classList.toggle('active')
 }
}
  })
              
            
!
999px

Console