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 class="swiper-background">
  <div class="swiper-img">
    <div class="swiper swiper-gallery" data-ident="product" data-effect="fade" data-slidesPerView="1" data-spaceBetween="0">
      <div class="swiper-wrapper">
        <div class="swiper-slide lazy bg-cover" data-bg="https://static.hongcdn.com/images/swiper-1.jpg">
        </div>
        <div class="swiper-slide lazy bg-cover" data-bg="https://static.hongcdn.com/images/swiper-2.jpg">
        </div>
        <div class="swiper-slide lazy bg-cover" data-bg="https://static.hongcdn.com/images/swiper-3.jpg">
        </div>
        <div class="swiper-slide lazy bg-cover" data-bg="https://static.hongcdn.com/images/swiper-4.jpg">
        </div>
      </div>
    </div>
  </div>
  <div class="swiper-content">
    <div class="swiper" data-hover id="swiper-thumb-product" data-effect="slide" data-direction="vertical" data-thumbs data-speed="800" data-delay="4000" data-slidesPerView="4" data-slidesPerGroup="4" data-initialSlide="1" data-hover-control>
      <div class="swiper-wrapper">
        <div class="swiper-slide">
          <div class="item-col odm-col">
            <div class="entry-wrapper">
              <h3 class="entry-title">服装器械公司响应式自适应网站模板</h3>
              <div class="entry-text">定制化建站模板,专为满足您的需求而设计。</div>
            </div>
          </div>
        </div>
        <div class="swiper-slide">
          <div class="item-col odm-col">
            <div class="entry-wrapper">
              <h3 class="entry-title">灯产品公司响应式自适应网站模板</h3>
              <div class="entry-text">定制化建站模板,专为满足您的需求而设计。</div>
            </div>
          </div>
        </div>
        <div class="swiper-slide">
          <div class="item-col odm-col">
            <div class="entry-wrapper">
              <h3 class="entry-title">工业产品公司响应式自适应网站模板</h3>
              <div class="entry-text">定制化建站模板,专为满足您的需求而设计。</div>
            </div>
          </div>
        </div>
        <div class="swiper-slide">
          <div class="item-col odm-col">
            <div class="entry-wrapper">
              <h3 class="entry-title">新能源产品公司响应式自适应网站模板</h3>
              <div class="entry-text">定制化建站模板,专为满足您的需求而设计。</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
              
            
!

CSS

              
                .cms_copyright {
  display: none;
}
.swiper-img {
  position: absolute;
  width: 100%;
  height: 800px;
  left: 0;
  right: 0;
}
.swiper-img::before {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  content: "";
  background: rgba(0, 0, 0, 0.3);
  z-index: 5;
}
.swiper-img .swiper {
  height: 100%;
}

.odm-col {
  background: rgba(0, 0, 0, 0.3);
  padding: 50px;
  transition: all ease 0.3s;
  height: 100%;
}
.odm-col .entry-title {
  font-size: 34px;
  font-weight: 600;
  color: #fff;
}
.odm-col .entry-text {
  font-size: 18px;
  color: #fff;
  margin: 0;
}
@media (max-width: 768px) {
  .odm-col {
    padding: 15px;
  }
  .odm-col .thumbnail {
    position: relative;
    display: none;
  }
  .odm-col .entry-wrapper {
    padding: 0;
  }
  .odm-col .entry-title {
    font-size: 24px;
  }
}

.swiper-background {
  position: relative;
}
.swiper-content .swiper-vertical {
  height: 800px;
  position: relative;
  z-index: 10;
}
.swiper-thumbs .swiper-slide {
  border-bottom: none;
}
.swiper-slide-thumb-active .odm-col {
  background: rgba(255, 255, 255, 0.9);
}
.swiper-slide-thumb-active .odm-col .entry-title {
  color: #2184c3;
}
.swiper-slide-thumb-active .odm-col .entry-text {
  color: #999;
}
@media (max-width: 768px) {
  .swiper-vertical.swiper-watch-progress {
    height:400px;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console