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

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


                <div class="text">
  Lorem ipsum dolor sit amet consectetur adipisicing elit. Quasi iste temporibus quos possimus error, nostrum aliquid mollitia repudiandae dolorum voluptate cumque consectetur assumenda dicta atque iusto odit quis? Nostrum, quas!



                @keyframes anime {
    0% {
        opacity: 0;
        transform: translateY(30px);
    100% {
        opacity: 1;
        transform: 0;
/* .textAnimation {
    opacity: 0;
.show.textAnimation {
    opacity: 1;
} */
.text span {
    animation: anime 0.1s ease-out backwards;
    display: inline-block;


const text = document.querySelectorAll(".text");

for (let i = 0; i < text.length; i++) {
  const targetelement = text[i];
  // console.log(targetelement)
  textcontent = targetelement.textContent;
  // console.log(textcontent)
  animearray = [];  

  for (let j = 0; j < textcontent.split("").length; j++) {

 if (textcontent.split("")[j] === " ") {
      animearray.push(" ");
    } else {
      // textsArray.push(texts.split("")[j])//配列に入れなおしているだけ
      animearray.push('<span style="animation-delay: ' + (j*0.05) + 's;">' + textcontent.split("")[j] + '</span>')
    // 文字を空にする
  targetelement.textContent = "";
  // console.log(texts)
  for (let k = 0; k < animearray.length; k++) {
    targetelement.innerHTML += animearray[k];