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 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.

Quick-add: + add another resource

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.

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