Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

Save Automatically?

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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

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