Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!doctype html>
<html lang="en">
    <head>
        <!-- The below 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
        
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!--FOR OTHER TYPES OF STYLE FONTS AND GLYPHICONS-->
        
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        
        <!-- THIS IS A LOCAL .CSS FILE -->
        
        <link type="text/css" rel="stylesheet" href="des.css">
        
        <title>Document</title>
        
    </head>
    <body>
    
    
<div class="demo-content">
    <div class="box" id="with-jquery">jQuery</div>
    <a href="#" class="play" id="play-jquery"><span class="ion ion-play"></span>Play</a>
    <div class="box" id="with-velocity">Velocity.js</div>
    <a href="#" class="play" id="play-velocity"><span class="ion ion-play"></span>Play</a>
</div>
    
    
    
    
    
    
    
    
    
    
        
        <!----------------------------------------------BOOTSTRAP PLUGINS--------------------------------------------------------->
        
        <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
        
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
        
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        
        <!-- Include all compiled plugins (below), or include individual files as needed -->
        
        <script src="js/bootstrap.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/velocity/1.2.3/velocity.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/velocity/1.2.3/velocity.ui.min.js"></script>
        <!-- THIS IS A LOCA .JS FILE -->
        <script src="js.js"></script>
        
    </body>
</html>
 
function withAnimate() {
  $("#with-jquery").animate({
    left: "500px",
  }, {
    duration: 3000, 
    easing: "linear"
  } ); 
}
$("#play-jquery").on('click', function(){
  withAnimate();
});
function withVelocity() {
  $("#with-velocity").velocity({
    left: "500px",
  }, {
    duration: 3000, 
    easing: "linear"
  } );  
}
$("#play-velocity").on('click', function(){
  withVelocity();
});
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
aldoromo88pro
0viewers