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

              
                <div id="projects" class="container-fluid light-white-font">
  <h2 class="text-uppercase dark-gray-font">Projects</h2>
  <div class="container dark-gray-font">
    <div class="row">
      <div class="col-md-4">
        <div class="panel panel-default fixed-width center-block" data-toggle="modal" data-target="#projectA">
          <div class="panel-body">
            <a href="#">
              <img class="img-responsive center-block" src="http://placeimg.com/600/480/tech/1" />
            </a>
          </div>
          <div class="panel-footer">
            <a href="#"><h3>Project A</h3></a>
            <a href="#">
              <p>Some description.</p>
            </a>
          </div>
        </div>
        <div class="modal fade" id="projectA">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" title="Close"> <span class="glyphicon glyphicon-remove"></span></button>
              </div>
              <div class="modal-body">
                <div id="projectAsel" class="carousel slide project-slide" data-interval="false">
                  <div class="carousel-inner">
                    <div class="item active"> <img src="http://placeimg.com/600/480/tech/1" alt="item1">
                    </div>
                    <div class="item"><img src="http://placeimg.com/600/480/tech/2" alt="item2">
                    </div>
                    <div class="item"> <img src="http://placeimg.com/600/480/tech/3" alt="item3">
                    </div>
                    <div class="item"> <img src="http://placeimg.com/600/480/tech/4" alt="item4">
                    </div>
                    <ol class="carousel-indicators">
                      <li class="active" data-slide-to="0" data-target="#projectAsel">
                        <img alt="" src="http://placeimg.com/600/480/tech/1">
                      </li>
                      <li class="" data-slide-to="1" data-target="#projectAsel">
                        <img alt="" src="http://placeimg.com/600/480/tech/2">
                      </li>
                      <li class="" data-slide-to="2" data-target="#projectAsel">
                        <img alt="" src="http://placeimg.com/600/480/tech/3">
                      </li>
                      <li class="" data-slide-to="3" data-target="#projectAsel">
                        <img alt="" src="http://placeimg.com/600/480/tech/4">
                      </li>
                    </ol>
                  </div>
                  <a class="left carousel-control" href="#projectAsel" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left"></span></a>
                  <a class="right carousel-control" href="#projectAsel" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right"></span></a>
                </div>
                <div id="carouselHeader">
                  <h3>Project A</h3></div>
                <div id="info">
                  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam aliquet ipsum vitae interdum molestie. Mauris accumsan rhoncus purus at laoreet. Aenean non placerat lacus. Nam porttitor, ante a placerat fermentum, odio libero congue arcu,
                    vitae semper elit eros vitae nulla. Sed commodo porta leo eget malesuada.</p>
                  <p>Ut ligula nisl, ullamcorper ac accumsan id, bibendum et urna. Nunc sed euismod dolor. Phasellus consequat nisi elementum odio placerat aliquet. Mauris maximus augue ut dictum porta. Nulla dignissim mi non libero venenatis eleifend sed
                    ac lacus. Duis ultrices libero massa, non commodo tortor consectetur sed. Praesent porta ex et interdum porttitor.</p>
                </div>
              </div>
              <div class="modal-footer">
                <button class="btn-sm close" type="button" data-dismiss="modal">Back to projects</button>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="col-md-4">
        <div class="panel panel-default fixed-width center-block" data-toggle="modal" data-target="#projectB">
          <div class="panel-body">
            <a href="#">
              <img class="img-responsive center-block" src="http://placeimg.com/600/480/tech/50" />
            </a>
          </div>
          <div class="panel-footer">
            <a href="#"><h3>Project B</h3></a>
            <a href="#">
              <p>Some other description.</p>
            </a>
          </div>
        </div>
        <div class="modal fade" id="projectB">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" title="Close"> <span class="glyphicon glyphicon-remove"></span></button>
              </div>
              <div class="modal-body">
                <div id="projectBsel" class="carousel slide project-slide" data-interval="false">
                  <div class="carousel-inner">
                    <div class="item active"> <img src="http://placeimg.com/600/480/tech/50" alt="item1">
                    </div>
                    <div class="item"><img src="http://placeimg.com/600/480/tech/60" alt="item2">
                    </div>
                    <div class="item"> <img src="http://placeimg.com/600/480/tech/70" alt="item3">
                    </div>
                    <div class="item"> <img src="http://placeimg.com/600/480/tech/80" alt="item4">
                    </div>
                    <ol class="carousel-indicators">
                      <li class="active" data-slide-to="0" data-target="#projectBsel">
                        <img alt="" src="http://placeimg.com/600/480/tech/50">
                      </li>
                      <li class="" data-slide-to="1" data-target="#projectBsel">
                        <img alt="" src="http://placeimg.com/600/480/tech/60">
                      </li>
                      <li class="" data-slide-to="2" data-target="#projectBsel">
                        <img alt="" src="http://placeimg.com/600/480/tech/70">
                      </li>
                      <li class="" data-slide-to="3" data-target="#projectBsel">
                        <img alt="" src="http://placeimg.com/600/480/tech/80">
                      </li>
                    </ol>
                  </div>
                  <a class="left carousel-control" href="#projectBsel" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left"></span></a>
                  <a class="right carousel-control" href="#projectBsel" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right"></span></a>
                </div>
                <div id="carouselHeader">
                  <h3>Project B</h3></div>
                <div id="info">
                  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam aliquet ipsum vitae interdum molestie. Mauris accumsan rhoncus purus at laoreet. Aenean non placerat lacus. Nam porttitor, ante a placerat fermentum, odio libero congue arcu,
                    vitae semper elit eros vitae nulla. Sed commodo porta leo eget malesuada.</p>
                  <p>Ut ligula nisl, ullamcorper ac accumsan id, bibendum et urna. Nunc sed euismod dolor. Phasellus consequat nisi elementum odio placerat aliquet. Mauris maximus augue ut dictum porta. Nulla dignissim mi non libero venenatis eleifend sed
                    ac lacus. Duis ultrices libero massa, non commodo tortor consectetur sed. Praesent porta ex et interdum porttitor.</p>
                </div>
              </div>
              <div class="modal-footer">
                <button class="btn-sm close" type="button" data-dismiss="modal">Back to projects</button>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="col-md-4">
        <div class="panel panel-default fixed-width center-block" data-toggle="modal" data-target="#projectC">
          <div class="panel-body">
            <a href="#">
              <img class="img-responsive center-block" src="http://placeimg.com/600/480/tech/90" />
            </a>
          </div>
          <div class="panel-footer">
            <a href="#"><h3>Project C</h3></a>
            <a href="#">
              <p>Some description.</p>
            </a>
          </div>
        </div>
        <div class="modal fade" id="projectC">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" title="Close"> <span class="glyphicon glyphicon-remove"></span></button>
              </div>
              <div class="modal-body">
                <div id="projectCsel" class="carousel slide project-slide" data-interval="false">
                  <div class="carousel-inner">
                    <div class="item active"> <img src="http://placeimg.com/600/480/tech/90" alt="item1">
                    </div>
                    <div class="item"><img src="http://placeimg.com/600/480/tech/100" alt="item2">
                    </div>
                    <div class="item"> <img src="http://placeimg.com/600/480/tech/110" alt="item3">
                    </div>
                    <div class="item"> <img src="http://placeimg.com/600/480/tech/120" alt="item4">
                    </div>
                    <ol class="carousel-indicators">
                      <li class="active" data-slide-to="0" data-target="#projectCsel">
                        <img alt="" src="http://placeimg.com/600/480/tech/90">
                      </li>
                      <li class="" data-slide-to="1" data-target="#projectCsel">
                        <img alt="" src="http://placeimg.com/600/480/tech/100">
                      </li>
                      <li class="" data-slide-to="2" data-target="#projectCsel">
                        <img alt="" src="http://placeimg.com/600/480/tech/110">
                      </li>
                      <li class="" data-slide-to="3" data-target="#projectCsel">
                        <img alt="" src="http://placeimg.com/600/480/tech/120">
                      </li>
                    </ol>
                  </div>
                  <a class="left carousel-control" href="#projectCsel" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left"></span></a>
                  <a class="right carousel-control" href="#projectCsel" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right"></span></a>
                </div>
                <div id="carouselHeader">
                  <h3>Project C</h3></div>
                <div id="info">
                  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam aliquet ipsum vitae interdum molestie. Mauris accumsan rhoncus purus at laoreet. Aenean non placerat lacus. Nam porttitor, ante a placerat fermentum, odio libero congue arcu,
                    vitae semper elit eros vitae nulla. Sed commodo porta leo eget malesuada.</p>
                  <p>Ut ligula nisl, ullamcorper ac accumsan id, bibendum et urna. Nunc sed euismod dolor. Phasellus consequat nisi elementum odio placerat aliquet. Mauris maximus augue ut dictum porta. Nulla dignissim mi non libero venenatis eleifend sed
                    ac lacus. Duis ultrices libero massa, non commodo tortor consectetur sed. Praesent porta ex et interdum porttitor.</p>
                </div>
              </div>
              <div class="modal-footer">
                <button class="btn-sm close" type="button" data-dismiss="modal">Back to projects</button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                $font-base:  sans-serif;
$font-about:  sans-serif;

$dark-grey: #222222;
$orange: #fca311;
$light-white: #f5f5f5;
$light-gray: #e5e5e5;
$dark-orange: #b8770d;

html,
body {
  font-family: $font-base;
  font-smoothing: antialiased;
  height: 100%;
}

a {
  color: inherit;
  text-decoration: none !important;
}

#projects {
  background-color: $light-gray;
  padding: 80px 0;

  h2 {
    display: block;
    font-size: 38px;
    font-weight: 400;
    letter-spacing: 5px;
    margin: 0 !important;
    margin-after: 0.83em;
    margin-before: 0.83em;
    padding-bottom: 50px;
    position: relative;
    text-align: center;

    &after {
      bottom: 30px;
      content: "";
      display: block;
      height: 3px;
      left: 50%;
      position: absolute;
      transform: translateX(-50%);
      width: 100px;
    }
  }
}

.dark-gray-background {
  background-color: $dark-grey;
}

.dark-gray-font {
  color: $dark-grey !important;
}
.light-white-font {
  color: $light-white;
}

.container-fluid {
  min-height: 100%;
  padding: 0;
}

.fixed-width {
  max-width: 300px;
  min-width: 300px;
}

///*modal*///
#carouselHeader {
    h3{
      position: relative;
      text-align: center;
    }
}
/* Indicators list style */
.project-slide .carousel-indicators {
  bottom: 0;
  left: 0;
  margin-left: 5px;
  width: 100%;
}
/* Indicators list style */
.project-slide .carousel-indicators li {
  border: medium none;
  border-radius: 0;
  float: middle;
  height: 35px;
  margin-bottom: -10px;
  margin-left: 0;
  margin-right: 5px !important;
  margin-top: 0;
  width: 50px;
  border-radius: 3px;
  
}
/* Indicators images style */
.project-slide .carousel-indicators img {
  border: 2px solid $dark-orange;
  border-radius: 3px;
  float: left;
  height: 35px;
  left: 0;
  width: 50px;
  opacity: 0.7;
}
/* Indicators active image style */
.project-slide .carousel-indicators .active img {
  border: 2px solid $orange;
  opacity: 1;
}
/* carousel-control */
.carousel-control{
  color: $dark-orange; 
  opacity: 0.5;
}
.carousel-control:hover,
.carousel-control:focus {
  color: $orange;
  opacity: 1;
}
.carousel-control.left, .carousel-control.right{ 
    background: none !important;
    filter: none !important;
    progid: none !important;
}
              
            
!

JS

              
                $(".carousel").swipe({

  swipe: function(event, direction, distance, duration, fingerCount, fingerData) {

    if (direction == 'left') $(this).carousel('next');
    if (direction == 'right') $(this).carousel('prev');

  },
  allowPageScroll:"vertical"

});
              
            
!
999px

Console