Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <!-- indicators -->
<div id="carouselExampleIndicators" class="carousel slide">
    <ol class="carousel-indicators">
        <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
        <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
        <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
    </ol>

    <!-- carousel content -->
    <div class="carousel-inner">
        <!-- first slide -->
        <div class="carousel-item active">
            <img class="d-block w-100" src="http://res.cloudinary.com/uetboo/image/upload/s--l5cvDhuJ--/v1527309885/image_eese2w.jpg" alt="First slide">
            <div class="carousel-caption d-md-block">
                <h3 data-animation="animated bounceInLeft">
                    This is the caption for slide 1
                </h3>
                <button class="btn btn-primary" data-animation="animated zoomInUp">Button</button>
            </div>
        </div>

        <!-- second slide -->
        <div class="carousel-item">
            <img class="d-block w-100" src=" http://res.cloudinary.com/uetboo/image/upload/s--OVCvOIy5--/v1527310000/607x400_bwk3q5.png" alt="Second slide">
            <div class="carousel-caption d-md-block">
                <h3 data-animation="animated bounceInRight">
                    This is the caption for slide 2
                </h3>
                <button class="btn btn-primary" data-animation="animated zoomInUp">Button</button>
            </div>
            <!-- second slide content -->
        </div>

        <!-- third slide -->
        <div class="carousel-item">
            <img class="d-block w-100" src="http://res.cloudinary.com/uetboo/image/upload/s--EKobeKHW--/v1527306790/blue-ferrari-612-scaglietti_iwqaa9.jpg" alt="Third slide">
            <div class="carousel-caption d-md-block">
                <h3 data-animation="animated bounceInDown">
                    This is the caption for slide 3
                </h3>
                <button class="btn btn-primary" data-animation="animated zoomInUp">Button</button>
            </div>
            <!-- third slide content -->
        </div>
    </div>

    <!-- controls -->
    <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
        <span class="carousel-control-prev-icon" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
    </a>
    <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
        <span class="carousel-control-next-icon" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
    </a>
</div>
              
            
!

CSS

              
                .carousel-caption h3 {
  animation-delay: 1s;
}

.carousel-caption button {
  animation-delay: 2s;
}

.carousel-item img {
  opacity: 0.8;
}
              
            
!

JS

              
                (function($) {
  function doAnimations(elems) {
    var animEndEv = "webkitAnimationEnd animationend";

    elems.each(function() {
      var $this = $(this),
        $animationType = $this.data("animation");
      $this.addClass($animationType).one(animEndEv, function() {
        $this.removeClass($animationType);
      });
    });
  }

  var $myCarousel = $("#carouselExampleIndicators"),
    $firstAnimatingElems = $myCarousel
      .find(".carousel-item:first")
      .find("[data-animation ^= 'animated']");

  $myCarousel.carousel();

  doAnimations($firstAnimatingElems);

  $myCarousel.on("slide.bs.carousel", function(e) {
    var $animatingElems = $(e.relatedTarget).find(
      "[data-animation ^= 'animated']"
    );
    doAnimations($animatingElems);
  });
})(jQuery);

              
            
!
999px

Console