Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="wrapper"><!-- Main Container -->
  
  <div class="box"><!-- Div that will hold the UL -->
   <div class="scroll">
     <ul>
      <li>Name</li>
      <li>Email Address</li>
      <li>Having something to say</li>
     </ul>
     <ul>
      <li>Name</li>
      <li>Email Address</li>
      <li>About what, I have do idea</li>
     </ul>
     <ul>
      <li>Name</li>
      <li>Email Address</li>
      <li>Because most of the time this guy talks smack</li>
     </ul>
     <ul>
      <li>Name</li>
      <li>Email Address</li>
      <li>And he really doesn't know what he is doing. But hey, he's trying, so... </li>
     </ul>
   </div>
  </div><!-- End Box -->
  
</div><!-- End Main Container -->
              
            
!

CSS

              
                body {
  background-color: #999;
}

.wrapper {
  margin: 0 auto;
  padding: 0;
	width: 45em;
	height: 10em;
	background-color: #3E3E3E;
  box-shadow: 7px 5px 4px rgba(0,0,0,0.5);
}

.box {
	margin: 3em auto;
	padding: 2em;
	width: 15em;
	height: 3em;
	position: relative;
	overflow: hidden;
  top: 1em;
	background-color: #FFF;
	box-shadow: 7px 5px 4px rgba(0,0,0,0.5);
	border: 1px solid black;
	border-radius: 2px;
}
/* Animating the UL 
-_-_-_-_-_-_-_-_-_-_-_-_ 

@keyframes "scroll" {
 from {
   top: 100px;
 }
 to {
   top: -200px;
 }

}

@-moz-keyframes scroll {
 from {
   top: 100px;
 }
 to {
   top: -200px;
 }

}

@-webkit-keyframes "scroll" {
 from {
   top: 100px;
 }
 to {
   top: -200px;
 }

}

@-ms-keyframes "scroll" {
 from {
   top: 100px;
 }
 to {
   top: -200px;
 }

}

@-o-keyframes "scroll" {
 from {
   top: 100px;
 }
 to {
   top: -200px;
 }

}
*/
.scroll {
	position: absolute;

	/*-webkit-animation: scroll 15s linear infinite;
	-moz-animation: scroll 15s linear infinite;
	-ms-animation: scroll 15s linear infinite;
	-o-animation: scroll 15s linear infinite;
	animation: scroll 15s linear infinite; */
}

.scroll li{
	list-style: circle;
}
              
            
!

JS

              
                (function(){

function scroller() {

  var scroll = $('div.scroll');// Sets the div with a class of scroll as a variable
  
  var height = scroll.height(); // Gets the height of the scroll div
  
  var topAdj = -height-30; /* '-height' turns the height                   of the UL into a negative #, 
               * '- 50' subtracts an extra 50 pixels from the height of 
        			 * the div so that it moves the trail of the UL higher to 
							 * the top of the div before the animation                ends
							 */
	
	scroll.animate({
		'top' : [topAdj, 'linear'] 
	}, 8000, function(){
		scroll.css('top', 80); //resets the top position of the Ul for the next cycle
		scroller(); // Recalls the animation cycle to begin.
	});}
	
scroller();

})();
              
            
!
999px

Console