Pen Settings

HTML

CSS

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

JavaScript

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

Behavior

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.

HTML

              
                <div class="container-fluid previewScroller">
        <figure class="lookItem">
            <a href="sweet-solace_c_445.html" class="item"><img src="https://www.dominiquecohen.com/assets/images/modelshots/coll_19f5_1224_slide.jpg" alt="Shop the look Sweet Solace by Dominique Cohen"><figcaption>sweet solace</figcaption></a>
        </figure>
        <figure class="lookItem">
            <a href="baskin’_c_441.html" class="item"><img src="https://www.dominiquecohen.com/assets/images/modelshots/coll_19f7b_0323_slide.jpg" alt="Shop the look Baskin' by Dominique Cohen"><figcaption>baskin&rsquo;</figcaption></a>
        </figure>
        <figure class="lookItem">
            <a href="alfresco_c_428.html" class="item"><img src="https://www.dominiquecohen.com/assets/images/modelshots/coll_19f5_1144_slide.jpg" alt="Shop the look Alfresco by Dominique Cohen"><figcaption>alfresco</figcaption></a>
        </figure>
        <figure class="lookItem">
            <a href="glisten_c_423.html" class="item"><img src="https://www.dominiquecohen.com/assets/images/modelshots/coll_19f4_6Y6A1526_slide.jpg" alt="Shop the look Glisten by Dominique Cohen"><figcaption>glisten</figcaption></a>
        </figure>
        <figure class="lookItem">
            <a href="rainforest_c_432.html" class="item"><img src="https://www.dominiquecohen.com/assets/images/modelshots/coll_19f9_1986_slide.jpg" alt="Shop the look Rainforest by Dominique Cohen"><figcaption>rainforest</figcaption></a>
        </figure>
        <figure class="lookItem">
            <a href="beeing-there_c_421.html" class="item"><img src="https://www.dominiquecohen.com/assets/images/modelshots/coll_19f2_6Y6A9979_slide.jpg" alt="Shop the look Beeing There by Dominique Cohen"><figcaption>beeing there</figcaption></a>
        </figure>
        <figure class="lookItem">
            <a href="contrast-splendor_c_426.html" class="item"><img src="https://www.dominiquecohen.com/assets/images/modelshots/coll_19f6_1371_slide.jpg" alt="Shop the look Contrast Splendor by Dominique Cohen"><figcaption>contrast splendor</figcaption></a>
        </figure>
        <figure class="lookItem">
            <a href="teal-appeal_c_434.html" class="item"><img src="https://www.dominiquecohen.com/assets/images/modelshots/coll_19f7_0460_slide.jpg" alt="Shop the look Teal Appeal by Dominique Cohen"><figcaption>teal appeal</figcaption></a>
        </figure>
        <figure class="lookItem">
            <a href="impromptu_c_436.html" class="item"><img src="https://www.dominiquecohen.com/assets/images/modelshots/coll_19f9b_1690slide.jpg" alt="Shop the look Impromptu by Dominique Cohen"><figcaption>impromptu</figcaption></a>
        </figure>
        <figure class="lookItem">
            <a href="sunburst-and-pearls_c_420.html" class="item"><img src="https://www.dominiquecohen.com/assets/images/modelshots/coll_19f1_6Y6A1890_slide.jpg" alt="Shop the look Sunburst and Pearls by Dominique Cohen"><figcaption>sunburst and pearls</figcaption></a>
        </figure>
        <figure class="lookItem">
            <a href="ruby-tuesday_c_422.html" class="item"><img src="https://www.dominiquecohen.com/assets/images/modelshots/coll_19f3_6Y6A0726_slide.jpg" alt="Shop the look Ruby Tuesday by Dominique Cohen"><figcaption>ruby tuesday</figcaption></a>
        </figure>
        <figure class="lookItem">
            <a href="stacks-the-new-black_c_315.html" class="item"><img src="https://www.dominiquecohen.com/assets/images/modelshots/coll_stacksCatImg19_slide.jpg" alt="Shop the look Stacks, the New Black by Dominique Cohen"><figcaption>stacks, the new black</figcaption></a>
        </figure>
    </div> 
              
            
!

CSS

              
                body {
  font-family: 'mr-eaves-modern', 'Open Sans', Trebuchet, sans-serif;
    font-weight: 200;
    font-size: 20px;
    line-height: 1.5;
    color: #53565A;
}
a, a:visited {text-decoration:none;}

.container-fluid {padding-left: 0;
    padding-right: 0; margin:50px 0 0;}
figure {margin:0;}

.previewScroller {
    display:flex; flex-wrap:nowrap; overflow:visible;}
.lookItem {
    position: relative; display:block; flex: 1 0 300px; transition: transform 500ms; overflow-y:visible;}
.item img {
    max-width:100%; overflow-y:visible;}
.lookItem .item {
    display:block; overflow-y:visible;}
.previewScroller:focus-within .lookItem,
.previewScroller:hover .lookItem {
  -webkit-transform: translateX(-25%); transform:translateX(-25%);}
.lookItem:focus ~ .lookItem,
.lookItem:hover ~ .lookItem {
    transform:translateX(25%);}
.previewScroller .lookItem:focus,
.previewScroller .lookItem:hover {
    transform: scale(1.5); z-index: 1; overflow-y:visible!important;}

.lookItem a figcaption, .lookItem a:visited figcaption {
    font-size:0.8em; line-height:1.5; color:#faf9f5; letter-spacing:0.05em; text-align:right; text-decoration:none; text-shadow:1px 1px rgba(86,83,90,0.5); padding-right:1em; transform: translateY(-2rem);}/*bg 56535a*/
.lookItem a:focus figcaption, .lookItem a:hover figcaption {
    text-decoration:none!important;}
              
            
!

JS

              
                
              
            
!
999px

Console