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="strips">
    <div class="strip hoverin">
        +
        <div class="content">
            <h1>Microdosing Cardigan</h1>
            <p>Af portland aesthetic, poutine roof party narwhal iPhone keffiyeh gentrify hammock synth occupy church-key chia. Tbh pinterest affogato, lyft mustache whatever portland synth offal. Actually roof party raw denim yuccie, af fanny pack blue
                bottle cold-pressed forage try-hard williamsburg 8-bit sustainable craft beer. Listicle ethical pork belly post-ironic man braid kinfolk. Tumeric beard cornhole, microdosing tacos VHS occupy kogi vinyl biodiesel XOXO pitchfork mixtape
                pinterest live-edge. Kombucha tacos cardigan cliche vinyl cold-pressed. Yr schlitz chartreuse raw denim 8-bit, hashtag VHS snackwave bushwick brooklyn raclette aesthetic.</p>
        </div>
    </div>
    <div class="strip">
        <div class="plus">+</div>
        <div class="content">
            <h1>Squid Hammock</h1>
            <p>Af portland aesthetic, poutine roof party narwhal iPhone keffiyeh gentrify hammock synth occupy church-key chia. Tbh pinterest affogato, lyft mustache whatever portland synth offal. Actually roof party raw denim yuccie, af fanny pack blue
                bottle cold-pressed forage try-hard williamsburg 8-bit sustainable craft beer. Listicle ethical pork belly post-ironic man braid kinfolk. Tumeric beard cornhole, microdosing tacos VHS occupy kogi vinyl biodiesel XOXO pitchfork mixtape
                pinterest live-edge. Kombucha tacos cardigan cliche vinyl cold-pressed. Yr schlitz chartreuse raw denim 8-bit, hashtag VHS snackwave bushwick brooklyn raclette aesthetic.</p>
        </div>
    </div>
    <div class="strip">
        <div class="plus">+</div>
        <div class="content">
            <h1>PBR&B</h1>
            <p>Af portland aesthetic, poutine roof party narwhal iPhone keffiyeh gentrify hammock synth occupy church-key chia. Tbh pinterest affogato, lyft mustache whatever portland synth offal. Actually roof party raw denim yuccie, af fanny pack blue
                bottle cold-pressed forage try-hard williamsburg 8-bit sustainable craft beer. Listicle ethical pork belly post-ironic man braid kinfolk. Tumeric beard cornhole, microdosing tacos VHS occupy kogi vinyl biodiesel XOXO pitchfork mixtape
                pinterest live-edge. Kombucha tacos cardigan cliche vinyl cold-pressed. Yr schlitz chartreuse raw denim 8-bit, hashtag VHS snackwave bushwick brooklyn raclette aesthetic.</p>
        </div>
    </div>
    <div class="strip">
        <div class="plus">+</div>
        <div class="content">
            <h1>Biodiesel Roof Party</h1>
            <p>Af portland aesthetic, poutine roof party narwhal iPhone keffiyeh gentrify hammock synth occupy church-key chia. Tbh pinterest affogato, lyft mustache whatever portland synth offal. Actually roof party raw denim yuccie, af fanny pack blue
                bottle cold-pressed forage try-hard williamsburg 8-bit sustainable craft beer. Listicle ethical pork belly post-ironic man braid kinfolk. Tumeric beard cornhole, microdosing tacos VHS occupy kogi vinyl biodiesel XOXO pitchfork mixtape
                pinterest live-edge. Kombucha tacos cardigan cliche vinyl cold-pressed. Yr schlitz chartreuse raw denim 8-bit, hashtag VHS snackwave bushwick brooklyn raclette aesthetic.</p>
        </div>
    </div>
    <div class="strip">
        <div class="plus">+</div>
        <div class="content">
            <h1>Hella Sartorial</h1>
            <p>Af portland aesthetic, poutine roof party narwhal iPhone keffiyeh gentrify hammock synth occupy church-key chia. Tbh pinterest affogato, lyft mustache whatever portland synth offal. Actually roof party raw denim yuccie, af fanny pack blue
                bottle cold-pressed forage try-hard williamsburg 8-bit sustainable craft beer. Listicle ethical pork belly post-ironic man braid kinfolk. Tumeric beard cornhole, microdosing tacos VHS occupy kogi vinyl biodiesel XOXO pitchfork mixtape
                pinterest live-edge. Kombucha tacos cardigan cliche vinyl cold-pressed. Yr schlitz chartreuse raw denim 8-bit, hashtag VHS snackwave bushwick brooklyn raclette aesthetic.</p>
        </div>
    </div>
    <div class="strip">
        <div class="plus">+</div>
        <div class="content">
            <h1>Lumbersexual</h1>
            <p>Af portland aesthetic, poutine roof party narwhal iPhone keffiyeh gentrify hammock synth occupy church-key chia. Tbh pinterest affogato, lyft mustache whatever portland synth offal. Actually roof party raw denim yuccie, af fanny pack blue
                bottle cold-pressed forage try-hard williamsburg 8-bit sustainable craft beer. Listicle ethical pork belly post-ironic man braid kinfolk. Tumeric beard cornhole, microdosing tacos VHS occupy kogi vinyl biodiesel XOXO pitchfork mixtape
                pinterest live-edge. Kombucha tacos cardigan cliche vinyl cold-pressed. Yr schlitz chartreuse raw denim 8-bit, hashtag VHS snackwave bushwick brooklyn raclette aesthetic.</p>
        </div>
    </div>
</div>
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Merriweather:300|Montserrat:900');
$strips: 6;
html,
body {
    height: 100%;
    min-height: 100%;
}

body {
    align-items: center;
    display: flex;
    font-family: 'Merriweather', serif;
    justify-content: center;
    line-height: 1.95;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    letter-spacing: 1px;
}

.strips {
    align-items: center;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    height: 100vh;
    justify-content: center;
    overflow: hidden;
    width: 100vw;
}

.strip {
    align-items: center;
    display: flex;
    height: 100vh;
    justify-content: center;
    overflow: hidden;
    .content {
        opacity: 0;
        transform: scale(0);
        width: 0;
        h1,
        p {
            opacity: 0;
            transition: opacity 600ms ease, transform 600ms ease;
        }
        h1 {
            transform: translateY(-25%);
        }
        p {
            transform: translateX(25%);
            transition-delay: 600ms;
        }
    }
    &.hoverin {
        grid-column: 1 / span 5;
        justify-content: flex-start;
        padding-left: 2.92em;
        .content {
            font-size: .6em;
            opacity: 1;
            padding: 4em;
            transform: scale(1);
            width: 100%;
            h1,
            p {
                opacity: 1;
            }
            h1 {
                transform: translateY(0);
            }
            p {
                transform: translateX(0);
            }
        }
    }
}

@for $i from 1 through $strips {
    .strip:nth-child(#{$i}) {
        background-color: rgb($i*15, $i*15, $i*15);
        color: rgb(350/$i, 350/$i, 350/$i);
        &:hover {
            grid-column: #{$i} / span 5;
        }
    }
}
            
          
!
            
              let strips = document.querySelector('.strips');
let strip  = document.querySelectorAll('.strip');

strip.forEach(function(theStrip){
    theStrip.addEventListener('mouseenter', function() {
        strip[0].classList.remove('hoverin');
        theStrip.classList.add('hoverin');
    });
    theStrip.addEventListener('mouseleave', function() {
        theStrip.classList.remove('hoverin');
        strip[0].classList.add('hoverin');
    });
});
            
          
!
999px
Loading ..................

Console