Use value from dropdown to set setInterval with jQuery

First row to latest-row

HTML

<script src="https://raw.github.com/shaggysmile/jQueryCoreUISelect/master/js/jquery.core-ui-select.js"></script>
<table>
    <thead>
        <tr>
            <th>KODU</th>
            <th>&nbsp;</th>
            <th>SAAT</th>
            <th>LİG</th>
            <th>EV SAHİBİTAKIM</th>
            <th>SKOR</th>
            <th>MİSAFİR TAKIM</th>
            <th>İY</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>421</td>
            <td>Futbol</td>
            <td>MS</td>
            <td>TSL</td>
            <td>Team 1</td>
            <td>3-2</td>
            <td>Team 2</td>
            <td>0-1</td>
        </tr>
        <tr>
            <td>421</td>
            <td>Futbol</td>
            <td>MS</td>
            <td>TSL</td>
            <td>Team 1</td>
            <td>3-2</td>
            <td>Team 2</td>
            <td>0-1</td>
        </tr>
        <tr>
            <td>421</td>
            <td>Futbol</td>
            <td>MS</td>
            <td>TSL</td>
            <td>Team 1</td>
            <td>3-2</td>
            <td>Team 2</td>
            <td>0-1</td>
        </tr>
        <tr>
            <td>421</td>
            <td>Futbol</td>
            <td>MS</td>
            <td>TSL</td>
            <td>Team 1</td>
            <td>3-2</td>
            <td>Team 2</td>
            <td>0-1</td>
        </tr>
        <tr>
            <td>421</td>
            <td>Futbol</td>
            <td>MS</td>
            <td>TSL</td>
            <td>Team 1</td>
            <td>3-2</td>
            <td>Team 2</td>
            <td>0-1</td>
        </tr>
        <tr>
            <td>421</td>
            <td>Futbol</td>
            <td>MS</td>
            <td>TSL</td>
            <td>Team 1</td>
            <td>3-2</td>
            <td>Team 2</td>
            <td>0-1</td>
        </tr>
        <tr>
            <td>421</td>
            <td>Futbol</td>
            <td>MS</td>
            <td>TSL</td>
            <td>Team 1</td>
            <td>3-2</td>
        ...

CSS

table { text-align: center; margin-bottom: 20px }
thead { background: beige }
tbody tr:nth-child(odd) { background: tomato }
tbody tr:nth-child(even) { background: ivory }
















.b-core-ui-select {
    position: relative;
    width: 20%;
    padding: 10px;
    font-size: 12px;
    line-height: 18px;
    color: #333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    cursor: pointer;
    background-color: whiteSmoke;
    background-image: -ms-linear-gradient(top, white, #E6E6E6);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(white), to(#E6E6E6));
    background-image: -webkit-linear-gradient(top, white, #E6E6E6);
    background-image: -o-linear-gradient(top, white, #E6E6E6);
    background-image: linear-gradient(top, white, #E6E6E6);
    background-image: -moz-linear-gradient(top, white, #E6E6E6);
    background-repeat: repeat-x;
    border: 1px solid #ccc;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    border-color: #E6E6E6 #E6E6E6 #BFBFBF;
    border-bottom-color: #B3B3B3;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.b-core-ui-select__select {
    position: static;
    width: 80%;
    padding: 10px;
    font-size: 12px;
    line-height: 18px;
}

.b-core-ui-select__value {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 25px;
}

.b-core-ui-select__select_state_hide {
    height: 1px !important;
    margin: 0;
    padding: 0;
    position: absolute;
    width: 1px !important;
    text-indent: -9999px;
    overflow: hidden;
    opacity: 0;
    z-index: -1;
    filter: alpha(opacity = 0);
}

.b-core-ui-select:HOVER {
    color: #333333;
    background-color: #e6e6e6;
    background-position: 0 -15px;
    transition:...

JavaScript

function slide() {      
     $('table tbody tr:last-child')
       .animate({opacity: 0}, 
                function(){ $("table tbody tr:last-child").insertBefore('table tbody tr:first-child')
                  .animate({opacity : 1});
     });
  }    
    
  var def = setInterval(slide, 1000);
  $('select').on('change', function(){
    var val = $(this).val() * 10 * 1000;
    clearInterval(def);
    console.log('Timing ' + val);
    if( val > 0 ) {
      def = setInterval(slide, val);
    }
  });

$('select').coreUISelect();