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

              
                <h1>Carousel</h1>
<div class="container">
    <div class="card">
        <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
            <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>
            <div class="carousel-inner">
              <div class="bgTitle"></div>
                <div class="carousel-item active">
                    <div class="row h-100 align-items-center">
                        <div class="col-lg-6 d-flex justify-content-center align-items-center title">
                            <h3>
                                Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sodales, metu
                            </h3>
                        </div>
                        <div class="col-lg-6 content">
                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sodales, metus ac
                            fringilla suscipit, nulla massa mollis leo, ut maximus odio ex sit amet elit. Nullam varius
                            ante orci, quis rhoncus velit tempor sit amet. Nulla lacinia, sem sed euismod dignissim,
                            ante nibh iaculis
                            <div class="form-group">
    <label for="exampleInputEmail1">Email address</label>
    <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
    <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
  </div>
                        </div>
                    </div>
                </div>
        <div class="carousel-item">
                    <div class="row h-100 align-items-center">
                        <div class="col-lg-6 d-flex justify-content-center align-items-center title">
                            <h3>
                                Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sodales, metu
                            </h3>
                        </div>
                        <div class="col-lg-6">
                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sodales, metus ac
                            fringilla suscipit, nulla massa mollis leo, ut maximus odio ex sit amet elit. Nullam varius
                            ante orci, quis rhoncus velit tempor sit amet. Nulla lacinia, sem sed euismod dignissim,
                            ante nibh iaculis
                            <div class="form-group">
    <label for="exampleInputEmail1">Email address</label>
    <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
    <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
  </div>
                        </div>
                    </div>
                    <!--<button class="btn btn-next">Next</button>-->
                </div>
                    <div class="carousel-item">
                    <div class="row h-100 align-items-center">
                        <div class="col-lg-6 d-flex justify-content-center align-items-center title">
                            <h3>
                                Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sodales, metu
                            </h3>
                        </div>
                        <div class="col-lg-6">
                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sodales, metus ac
                            fringilla suscipit, nulla massa mollis leo, ut maximus odio ex sit amet elit. Nullam varius
                            ante orci, quis rhoncus velit tempor sit amet. Nulla lacinia, sem sed euismod dignissim,
                            ante nibh iaculis
                            <div class="form-group">
    <label for="exampleInputEmail1">Email address</label>
    <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
    <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
  </div>
                        </div>
                    </div>
                    <!--<button class="btn btn-next">Next</button>-->
                </div>
            </div>
        </div>
                          <button class="btn btn-next">Next</button>
    </div>

</div>
              
            
!

CSS

              
                html, body, .container, .carousel, .carousel-inner, .carousel-item{
  height: 100%
}
body{
  background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);
  font-family: 'Montserrat', sans-serif;
}
.container{
  display: flex;
  justify-content: center;
  align-items: center;
}
h1{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
  color: #fff;
}

.card{
  border-radius: 20px;
  height: 500px;
  width: 90%;
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
  border: none;
}

.carousel-item{
  z-index: 2;
  /*padding: 10px 25px;*/
}
.carousel-item > .row{
  margin: 0;
}
.title{
  color: #fff;
  text-align: center;
}
.bgTitle{
    background-color: #316e99;
    position: absolute;
    z-index: 1;
}

.title h3{
  text-shadow: 0px 3px 3px rgba(0,0,0,0.2);
}

.btn-next{
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 100px;
  border-radius: 20px;
  background-color: #316e99;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  z-index: 3;
}

input{
  background-color: transparent !important;
}

/*-- vertical bootstrap slider --*/
.carousel .carousel-item-next.carousel-item-left,
.carousel .carousel-item-prev.carousel-item-right {
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
}

.carousel .carousel-item-next,
.carousel .active.carousel-item-right {
    -webkit-transform: translate3d(0, 100%, 0);
            transform: translate3d(0, 100% 0);
}

.carousel .carousel-item-prev,
.carousel .active.carousel-item-left {
-webkit-transform: translate3d(0,-100%, 0);
        transform: translate3d(0,-100%, 0);
}

/*-- vertical carousel indicators --*/
.carousel-indicators{
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 40px;
    right: 0px;
    left: auto;
    width :auto;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
}
.carousel-indicators li{
    display: block;
    margin-bottom: 0px;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    background: #BDBDBD;
    transition: all ease 0.6s;
}
.carousel-indicators li.active{
    background: #000;
    width: 20px;
    border-radius: 25px;
}
/* Media Querys */
/* Small devices (landscape phones, 576px and up)*/ 
@media (min-width: 576px) {
  .bgTitle{
    height: 30%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    width: 100%;
    top: 0;
  }
  .content{
    padding: 15px;
  }
}

/* Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) {

}

/* Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {
  .bgTitle{
    height: 100%;
    width: 50%;
    border-bottom-left-radius: 15px;
    border-top-right-radius: 0px;
  }
}

/* Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {

}
              
            
!

JS

              
                $('.carousel').carousel({
  interval: 0
});
$('.btn-next').click(function(){
  $('.carousel').carousel('next');
});

              
            
!
999px

Console