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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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="main">
  <div class="content">
    <p>Baudelaire rebelled against the common, against the rote, against a scholasticism that, then as now, is hard to repel. He wrote notably, at times savagely, on the salons, revolting against the restricted hand, the hampered heart, the theory that would thwart, dicta that distort. He tilted against the academic. He saw in painting, in the plastic arts, not an analogy to poetry, not a metaphor for making images in words, but a series of proofs: all art a dance of form to form, a dance behind which music plays. “There is, essentially, a lyric way of feeling,” he wrote.</p>
    
    <w>Say what?</w>
    
    <p>
      This is the trouble with a body of work. If the poet is lucky, the work that goes into the poems, completed, might see the poems go to work for the poet. But a body of work cannot march en masse. Missionaries must make sorties. So, for Baudelaire, these apostles preach “The Albatross,” evangelize for “Spleen,” homilize on “The Invitation to the Voyage.” Thus, Baudelaire has seen, as lasting poets will, from a <w>higher</w> region still or a lower one than wished, a corpus winnowed down by time. Atomized; anthologized.
    </p>
  </div>

</div>
              
            
!

CSS

              
                body{
  margin: 0;
  background-color: #F6FFE6;
  color: #698346;
}

.content{
  padding-left: 40px;
  padding-right: 40px;
}

p{
  font-size: 30px;
}
w{
  font-size:30px;
}



.main{
  max-width: 800px;
  padding-bottom: 200px;
/*   text-align: center; */
}

w span {
  display:inline-block;
  animation: wiggle 1s infinite;
  animation-delay: calc(var(--animation-order) * 307ms);
  transform-origin: center;
  animation-timing-function: ease-in-out;
}


@keyframes wiggle {
  0% {
    transform: scale(1.0) translateY(0px) rotate(0deg);
  }
  20%{
    transform: scale(1.0) translateY(-2px) rotate(-3deg);
  }
  40%{
    transform: scale(1.1) translateY(-2px) rotate(3deg);
  }
  60%{
    transform: scale(1.0) translateY(2px) rotate(-3deg);
  }
  80%{
    transform: scale(0.95) translateY(-2px) rotate(3deg);
  }
  100% {
    transform: scale(1.0) translateY(0px) rotate(0deg);
  }
}

              
            
!

JS

              
                function wiggleWitIt() {
     wiggles = document.getElementsByTagName("w");
  
    [...wiggles].forEach((wiggle) => {
      wiggle.innerHTML = wiggle
        .innerText
        .split("")
        .map((char, index) => {
          return `<span style='--animation-order: ${index + 1};'>${char}</span>`;
        })
        .join("");
    });
};

document.addEventListener("DOMContentLoaded", wiggleWitIt());
              
            
!
999px

Console