Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Mutation Observer test</title>
  <script src="//cdn.jsdelivr.net/mootools/1.4.5/mootools-core-1.4.5-full-nocompat-yc.js"></script>
  <script src="//rawgit.com/megawac/MutationObserver.js/master/MutationObserver.js"
  ></script>
  <script src="//rawgit.com/mootools/mootools-more/992345a159b357cf06635f3060ba3179e1bb7074/Source/Fx/Fx.Scroll.js"></script>
  <script src="//rawgit.com/f/loremjs/ec971d2c7fc9a9b6a788095e0523a2794420f5c4/lorem.js"></script>
</head>
<body>
  <div id="description">
    <p>
      This is a simple sample use of the Mutation Observer interface. Every 2 seconds a new articile will be created with some dummy lorem and the mutation observer will scroll the container according to content.
    </p>
  </div>
  <div id="container"></div>
</body>
</html>
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers