Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
  #par {height: 1.3em; overflow: hidden;}
</style>
</head>
<body>
 <div id="par">
  <div id="item11">jdkjldafj alkjdalkj lkasd daslkjdlka kladsjlaksjd lkasjdlkasjd lkasjd</div>
  <div id="item12">1<br>2<br>3</div>
  <div id="item13">faadfafadf</div>
  <div id="item14">hjsdfhdsjkf</div>
</div>
</body>
</html>
 
(function(){
var top=0;
var par = document.getElementById('par')
var scroll = function() {
  top++;
  if( top>=par.firstElementChild.offsetHeight )
  {
    //first element is out of sight, so move to the end of the list
    top=0;
    par.firstElementChild.style.marginTop='';//reset to -
    par.appendChild(par.firstElementChild);
  }
  else
  {
     par.firstElementChild.style.marginTop='-'+top+'px';
  }
  setTimeout(scroll, 100)
}
scroll();
})()
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers