cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <div class="product">
  <img src="http://testn.imgix.net/Zoom/6/_11271806.jpg?fit=fill&bg=FFF&fm=jpg&q=60&trim=color&trimcolor=FFF&trimtol=20&w=380&h=583" alt="Woman">

  <div class="msdw-hotspot-wrapper">
    <a class="msdw-hotspot" href="#">

      <svg class="msdw-hotspot-icon" xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="#1abc9c" viewBox="0 0 30 30"><path d="M15.075 0c-8.284 0-15 6.716-15 15s6.716 15 15 15 15-6.716 15-15-6.716-15-15-15zM23 16h-7v7.31c0 .553-.447 1-1 1s-1-.447-1-1V16H7c-.553 0-1-.447-1-1s.447-1 1-1h7V7.31c0-.553.447-1 1-1s1 .447 1 1V14h7c.553 0 1 .447 1 1s-.447 1-1 1z"/></svg>

      <div class="msdw-hotspot-info">
        <div class="msdw-hotspot-slides">
          <img src="http://testn.imgix.net/Zoom/15/_9904355.jpg?fit=fill&bg=FFF&fm=jpg&q=60&trim=color&trimcolor=FFF&trimtol=20&w=480&h=500" alt="Boot">
          <img src="http://testn.imgix.net/Zoom/2/_10040182.jpg?fit=fill&bg=FFF&fm=jpg&q=60&trim=color&trimcolor=FFF&trimtol=20&w=480&h=500" alt="Boot">
          <img src="http://testn.imgix.net/Zoom/16/_10040236.jpg?fit=fill&bg=FFF&fm=jpg&q=60&trim=color&trimcolor=FFF&trimtol=20&w=480&h=500" alt="Boot">
        </div>

        <div class="msdw-hotspot-caption">
          <h4>'1460 W' Boot (Women)</h4>
          <p>A signature sole grounds the offbeat style of an iconic lace-up boot.</p>
        </div>
      </div>

    </a>
  </div>
</div>

            
          
!
            
              @import "https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css";
@import "https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css";

@keyframes animBlock {
  0% {
    display: none;
    opacity: 0;
  }
  1% {
    display: block;
    opacity: 0;
    transform: scale(.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

html { background-color: #eee; }
body { height: 100%; max-width: 1000px; margin: 1em auto; }
a { text-decoration: none; color: #000; }
h4 { margin: 0 0 15px; }
img { max-width: 100%; height: auto; }

.product { position: relative; }

.msdw-hotspot-wrapper {
  position: absolute;
  bottom: 50px;
  left: 230px;
}

.msdw-hotspot {
  display: block;
  width: 30px;
  height: 30px;
  overflow: hidden;
  //-webkit-user-select: none;
  //-webkit-touch-callout: none;   
  //-webkit-transform-style: preserve-3d;
  //-webkit-backface-visibility: hidden;
  
  &:active,
  &:hover,
  &:focus {
    width: auto;
    height: auto;
    background-color: rgba(0,0,0,.01); // IE9
    
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-user-select: none;
    -webkit-touch-callout: none; // only to disable context menu on long press
    
    .msdw-hotspot-info {
      animation: animBlock .15s;
    }
  }
}

.msdw-hotspot-icon {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.msdw-hotspot-info {
  position: relative;
  padding: 0 0 50px 200px;
  width: 300px;
  text-align: center;
  
  &::before {
    content: "";
    width: 250px;
    height: 1px;
    position: absolute;
    bottom: 120px;
    left: 0;
    background-color: #1abc9c;
    z-index: 1;
    transform: rotate(-45deg);
  }
  
  img {
    display: block;
    padding: 15px 0;
    background-color: #fff;
  }
}

.ie9 .msdw-hotspot-info,
.ie10 .msdw-hotspot-info {
  background: transparent url(IEsucks.gif);
}

.msdw-hotspot-caption {
  padding: 5px 15px;
  line-height: 1.25;
  background-color: #fff;
  
  p {
    font-size: 14px;
  }
}

.slick-dotted.slick-slider { margin-bottom: 0; }

.slick-slide { width: 300px; outline: 0; }

.slick-dots {
  bottom: 0;
  
  li {
    margin: 15px 5px;
    
    button::before {
      font-size: 14px;
    }
  }
}


            
          
!
            
              $('.msdw-hotspot-slides').slick({
  arrows: false,
  dots: true
});

// http://stackoverflow.com/questions/2851663/how-do-i-simulate-a-hover-with-a-touch-in-touch-enabled-browsers
document.addEventListener("touchstart", function(){}, true);
            
          
!
999px
Loading ..................

Console