<div id="target" >
  Lorem ipsum dolor sit amet, consectetur adipisicing elit,
  sed do eiusmod tempor incididunt ut labore et dolore magna
  aliqua. Ut enim ad minim veniam, quis nostrud exercitation
  ullamco laboris nisi ut aliquip ex ea commodo consequat.
  Duis aute irure dolor in reprehenderit in voluptate velit
  esse cillum dolore eu fugiat nulla pariatur. Excepteur
  sint occaecat cupidatat non proident, sunt in culpa qui
  officia deserunt mollit anim id est laborum.
</div>
<div id="line">
  Elementos Agregados al Scroll
</div>
<div id="log"></div>
#target {
  border: solid 2px;
  overflow: scroll;
  width: 200px;
  height: 100px;
}

#line {
  border-bottom: solid 2px;
  margin-top: 10px;
}
var $contador = 0;
$( "#target" ).scroll(function() {
  $contador++;
  $( "#log" ).prepend( "<div>Se realizo scroll " + $contador + "</div>" );
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js