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-2.0.3.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
  <style>
    .myDiv {
      position:absolute;     /* Top property will not animate properly. */
      /*position:fixed;*/    /* Works as expected. */
    
      background:blue;
      border:1px solid #000;
      
      width:200px;
      height:200px;
      
      opacity:0;
      top:-10px;
    }
  </style>
  <script>
    $(function() {
      $(".myDiv").animate({
        top: 0,
        opacity: 1
      }, 500);
    });
  </script>
</head>
<body>
  <div class="myDiv">
    
  </div>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers