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 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

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.

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="news">
    <span>News Feed</span>
    <ul>
      <li><a href="#">Student Bitten by Radioactive Bear...</a></li>
      <li><a href="#">Pluto Now Officially A Planet Again...</a></li>
      <li><a href="#">Study Reveals: Babies Are Stupid...</a></li>
      <li><a href="#">Elvis Presley Found Alive In Jersey...</a></li>
      <li><a href="#">Alien Life Confirmed on Uranus...</a></li>
      <li><a href="#">Archeologist Finds Skeleton People...</a></li>
      <li><a href="#">Microsoft Unveils Windows 21...</a></li>
      <li><a href="#">Developer Discovers Mobile Internet...</a></li>
      <li><a href="#">Bluetooth: The Silent Killer?...</a></li>
    </ul>
</div>



              
            
!

CSS

              
                body {
  background: #a9edda;
  height: 100%;
}

@keyframes ticker {
  0% {
    margin-top: -50px;
  }
  11% {
    margin-top: -100px;
  }
  22% {
    margin-top: -150px;
  }
  33% {
    margin-top: -200px;
  }
  44% {
    margin-top: -250px;
  }
  55% {
    margin-top: -300px;
  }
  66% {
    margin-top: -350px;
  }
  77% {
    margin-top: -400px;
  }
  88% {
    margin-top: -450px;
  }
  100% {
    margin-top: -50px;
  }

}

.news ul li {
  line-height: 50px;
  list-style: none;
}
.news {
  background: #c8102e;
  box-shadow: inset 0 -15px 30px rgba(0, 0, 0, 0.4),
    0 5px 10px rgba(0, 0, 0, 0.5);
  width: 570px;
  height: 40px;
  margin: 50px auto;
  overflow: hidden;
  border-radius: 4px;
  padding: 3px;
  -webkit-user-select: none;
}

.news span {
  float: left;
  color: #fff;
  padding: 4px;
  position: relative;
  top: 1%;
  border-radius: 4px;
  background: #333;
  font: 28px Raleway, Arial, sans-serif;
  vertical-align: -webkit-baseline-middle;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  cursor: pointer;
}

.news ul {
  float: left;
  padding-left: 10px;
  animation: ticker 25s cubic-bezier(1, 0, 0.5, 0) infinite;
  -webkit-user-select: none;
}

.news ul li a {
  margin-left: 160px;
  color: #fff;
  text-decoration: none;
  font: 22px Raleway, Arial, sans-serif;
  vertical-align: -webkit-baseline-middle;
  vertical-align: -moz-middle-with-baseline;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
}

.news ul:hover {
  animation-play-state: paused;
}
.news span:hover + ul {
  animation-play-state: paused;
}

              
            
!

JS

              
                /*nope*/
              
            
!
999px

Console