Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<link href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div id="test"></div>
</body>
</html>
 
#test{
  width:100px;
  height: 100px;
  background-color: red;
  
}
 
  $("#test").delay(500,"myq").queue("myq",function(next){
    $("#test").hide(500);
    console.log("Q1");
    next();
    
  });
  $("#test").delay(500,"myq").queue("myq",function(next){
    $("#test").show(500);
    console.log("Q2");
    next();
  });  $("#test").delay(2000,"myq").queue("myq",function(next){
    $("#test").slideUp(1000);
    console.log("Q3");
    next();
  });
$("#test").dequeue("myq");
Output

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

Dismiss x
public
Bin info
JArpitpro
0viewers