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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.


                <base href="">
<ul id="slider">
    <img src="slide-civil-1.jpg" data-thumb="slide-civil-1.jpg" alt="" />
    <img src="slide-env-1.jpg" data-thumb="slide-env-1.jpg" />
    <img src="slide-civil-2.jpg" data-thumb="slide-civil-2.jpg" />
    <img src="slide-env-2.jpg" data-thumb="slide-env-2.jpg" />


                ul#slider {
  width: 680px;
  height: 317px;
  list-style: none;
  Adjust the left and right position to be about the same size as the
  outer wrapper padding (.anythingslider-metallic)
.prev-thumb, .next-thumb {
  display: none;
  position: absolute;
  width: 140px;
  height: 70px;
  left: 25px; /* adjust this as needed */
  background: #0355a3;
  top: 50%;
  margin-top: -35px;
.next-thumb {
  left: auto;
  right: 25px; /* adjust this as needed */
.prev-thumb img, .next-thumb img {
  width: 100px;
  height: 60px;
  margin: 5px;
.prev-thumb img {
  float: right;
.back:hover ~ .prev-thumb, .forward:hover ~ .next-thumb, .prev-thumb:hover, .next-thumb:hover {
  display: inline;


                $(function () {
  function updateThumbs(slider) {
    var prv = slider.targetPage - 1 < 0 ? slider.panels : slider.targetPage - 1,
    nxt = slider.targetPage + 1 > slider.panels - 1 ? 0 : slider.targetPage + 1;
    $('.prev-thumb img').attr('src', slider.$items.eq(prv).find('img').attr('data-thumb'));
    $('.next-thumb img').attr('src', slider.$items.eq(nxt).find('img').attr('data-thumb'));

  /* use slide_complete instead of slide_begin if you want the thumbs to change
  after the animation has completed, but the updating then won't match the
  default navigation styling
  $('#slider').on('initialized slide_begin', function(e, slider){
    if (!slider.$wrapper.find('.prev-thumb').length) {
      slider.$wrapper.append('<div class="prev-thumb"><img/></div><div class="next-thumb"><img/></div>');

  /* initialize the slider */
    theme: 'metallic'