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. 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

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

              
                <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">

<section>
  <article>
    <h1>1) Move From This Table...</h1>
    <table class="filtered">
      <thead>
        <tr>
          <th>Name</th>
          <th>Type</th>
          <th>Start</th>
          <th>End</th>
          <th>Move</th>
        </tr>
      </thead>
      <tbody>
        <tr class="filtered-row">
          <td>CL1 128</td>
          <td>4x9+4</td>
          <td>9:00 am</td>
          <td>5:00 pm</td>
          <td><i class="fa fa-angle-double-right icon-move-right"></i></td>
        </tr>
        <tr class="filtered-row">
          <td>CL1 129</td>
          <td>Split</td>
          <td>9:00 am</td>
          <td>5:00 pm</td>
          <td><i class="fa fa-angle-double-right icon-move-right"></i></td>
        </tr>
      </tbody>
    </table>

    <h1>2) And this Table</h1>
    <table class="all-schedules">
      <thead>
        <tr>
          <th>Name</th>
          <th>Type</th>
          <th>Start</th>
          <th>End</th>
          <th>Move</th>
        </tr>
      </thead>
      <tbody>
        <tr class="all-row">
          <td>CL1 130</td>
          <td>4x10</td>
          <td>9:00 am</td>
          <td>5:00 pm</td>
          <td><i class="fa fa-angle-double-right icon-move-right"></i></td>
        </tr>
        <tr class="all-row">
          <td>CL1 131</td>
          <td>5x8</td>
          <td>9:00 am</td>
          <td>5:00 pm</td>
          <td><i class="fa fa-angle-double-right icon-move-right"></i></td>
        </tr>
      </tbody>
    </table>

  </article>
</section>
<section>
  <article>
    <h1>3) To/From This Table</h1>
    <table class="ranked">
      <thead>
        <tr>
          <th>Name</th>
          <th>Type</th>
          <th>Start</th>
          <th>End</th>
          <th>Remove</th>
        </tr>
      </thead>
      <tbody>
        <tr class="filtered-row">
          <td>CL1 132</td>
          <td>4x9+4</td>
          <td>9:00 am</td>
          <td>5:00 pm</td>
          <td><i class="fa fa-angle-double-right icon-move-right"></i></td>
        </tr>
        <tr class="all-row">
          <td>CL1 133</td>
          <td>Split</td>
          <td>9:00 am</td>
          <td>5:00 pm</td>
          <td><i class="fa fa-angle-double-right icon-move-right"></i></td>
        </tr>
      </tbody>
    </table>
  </article> 
</section>
              
            
!

CSS

              
                $sec-color-2: #00ADEF;
* { box-sizing: border-box; }
body { background-color: #222; }
h1 {
  color: #ccc;
  font-size: 1.2rem;
  font-family: Arial;
  margin: 1.5rem 0 .3rem 0;
}
section {
  float: left;
  width: 48%;
  margin: 0 1%;
}

table {
  font-family: Arial;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border: 3px solid #52b9e9;
  color: #444444;
  background: #efefef;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  border-radius: 0;
}
table > tbody > tr:last-child > td {
  border-bottom: none;
}
table > tbody > tr > td {
  border-top: 1px solid #dddddd;
  padding: .7rem;
  text-align: left;
  border-left: none;
}
table > tbody > tr > td.footable-first-column {
  border-left: none;
}
table > thead > tr > th {
  border-bottom: 1px solid #dddddd;
  padding: .7rem;
  text-align: left;
}
table > thead > tr > th,
table > thead > tr > td {
  background-color: #52b9e9;
  color: #ffffff;
  border-top: none;
  border-left: none;
  font-weight: normal;
}

table > tfoot > tr > th,
table > tfoot > tr > td {
  background-color: #52b9e9;
  border: 1px solid #52b9e9;
  border-top: none;
  border-left: none;
}

// -------------------
// Styles for schedule "throwing" animations 
// --------------------
@mixin animation($prop) {
  -webkit-animation: $prop;
  -moz-animation: $prop;
  -o-animation: $prop;
  animation: $prop;
}
// Mixin for keyframes
@mixin keyframes($name) {
  @-webkit-keyframes #{$name} { @content; }
  @-moz-keyframes #{$name} { @content; }
  @-ms-keyframes #{$name} { @content; }
  @keyframes #{$name} { @content; } 
}
/* Create animation pushRight */
@include keyframes(rotateIcon) {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(180deg); }
}
// --------------
.rotateIcon { @include animation(rotateIcon 0.8s); }
.ranked, .all-schedules, .filtered { tr { 
  td {  i.icon-move-up, i.icon-move-down {
    display: inline-block;
    height: 20px;
    margin: 0;
    text-align: center;
    width: 20px;
    &:hover {
      cursor: pointer; 
      color: $sec-color-2; 
    } } } 
  td:last-child { cursor: pointer; &:hover {
    i.icon-move-right { 
      color: $sec-color-2;
      transition: all .3s ease;
      transform: translateX(10px); 
    } } } } }

.ranked {
  tr { 
    td:last-child {
      cursor: pointer;
      i.icon-move-right {
        float: left;
      }
      &:hover {
        i.icon-move-right { 
          color: $sec-color-2;
        } 
      } } } }

.ranked tr td:last-child:hover i.icon-move-right {
  transform: rotate(180deg);
  color: #00ADEF;
}

.icon-move-right {
  margin-left: 0;
  transition: all 0.3s ease;
  font-size: 1.5rem !important;
}

              
            
!

JS

              
                $(document).ready(function() {
    $(".filtered tbody").on("click","tr.filtered-row td:last-child", function() {
      var tr = $(this).closest("tr");
      $(tr).appendTo(".ranked tbody").velocity("transition.slideLeftIn", 750);
    });
    $('.ranked tbody').on("click","tr.filtered-row td:last-child", function() {
      var tr = $(this).closest("tr").remove().clone();
      $(tr).appendTo(".filtered tbody").velocity("transition.slideRightIn", 750);
    }); 

    $(".all-schedules tbody").on("click","tr.all-row td:last-child", function() {
      var tr = $(this).closest("tr").remove().clone();
      $(tr).appendTo(".ranked tbody").velocity("transition.slideLeftIn", 750);
      //.velocity("fadeIn", {delay: 100, duration: 500});
    });
    $('.ranked tbody').on("click","tr.all-row td:last-child", function() {
      var tr = $(this).closest("tr").remove().clone();
      $(tr).appendTo(".all-schedules tbody").velocity("transition.slideRightIn", 750);
    }); 
});

$(".ranked-row").hover().find("i").addClass("rotateIcon");
              
            
!
999px

Console