Pen Settings



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


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


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.


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.


                <section class="hero">
    <div class="hero_group">
        <h1 class="hero_title">
Our Awesome Hero Section
        <p class="hero_description">Aren't transitions cool?</p>
        <button class="button hero_button">
            Hover Me



                body {
  font-family: Lato, sans-serif;

//Hero section
.hero {
  background-image: url(;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  height: 820px;
  position: relative;

.hero_group {
  margin: 0 auto;
  max-width: 500px;
  padding: 100px 50px;
  text-align: center;
  color: #fff;

.hero_title {
  margin: 0;
  font-size: 60px;
  line-height: 1.2;
  font-weight: 700;
  opacity: 0;
  //different delay time
  animation: Hero 3s 0.1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);

.hero_description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 30px;
  line-height: 1.5;
  opacity: 0;
  //different delay time
  animation: Hero 3s 0.2s forwards cubic-bezier(0.2, 0.8, 0.2, 1);

.hero_button {
  font-size: 17px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.7);
  padding: 9px 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);

.hero_button:hover {
  background: white;
  color: black;
  transform: translateY(-5px) scale(1.1);

//animation for Hero section
@keyframes Hero {
  0% {
    opacity: 0;
    transform: translateY(20px);

  100% {
    opacity: 1;
    transform: translateY(0px);