Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  <style>
        #container{
            width: 100%; line-height: 200px; text-align: center; color: #fff; background-color: #444; font-size: 30px;
        }
        .normal {
            height: 200px;
        }
        .small {
            height: 100px;
        }
        .transition {
            height: 200px;
            transition: all 1s;
        }
  </style>
</head>
<body>
  <div id="container" class="normal"></div>
  <script>
    var node = document.querySelector('#container')
    node.onmouseover = function() {
      node.className = 'small'
      // 强制重绘
      // console.log(node.clientHeight)
      node.className = 'transition'
    }
  </script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
Datura35422pro
0viewers