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

              
                 <!-- Child hover pages -->
    <section id="child-pages-section">
        <div class="container">
            <div class="row child-pages-wrapper">
                    <div class="col">
                        <div class="parent-pages">
                            <h2 class="parent active-parent hoverReveal1">HEADING ONE</h2>
                            <h2 class="parent hoverReveal2">HEADING TWO</h2>
                            <h2 class="parent hoverReveal3">HEADING THREE</h2>
                        </div>
                    </div>
                
                <!-- Wrapper 1 -->
                <div class="wrapper1 col-md-9 active-hoverReveal py-4">
                    <div class="row">
                        <div class="col-md-4">
                            <div class="card">
                                <img class="card-img-top img-fluid" src="https://placeimg.com/205/101/animals" style="width:100%">
                                <div class="card-body p-0">
                                    <h6 class="card-title pt-1">lorem Ipsum 1</h6>
                                    <p class="card-text pb-1">Nam liber tempor cum soluta nobis eleifend option congue nihil </p>
                                </div>
                            </div>
                        </div>
                    
                        <div class="col-md-4">
                            <div class="card">
                                <img class="card-img-top img-fluid" src="https://placeimg.com/205/101/arch" style="width:100%">
                                <div class="card-body p-0">
                                    <h6 class="card-title pt-1">lorem Ipsum 2</h6>
                                    <p class="card-text pb-1">Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse </p>
                                </div>
                            </div>
                        </div>
            
                        <div class="col-md-4 pr-4">
                            <div class="card">
                                <img class="card-img-top img-fluid" src="https://placeimg.com/205/101/nature" style="width:100%">
                                <div class="card-body p-0">
                                    <h6 class="card-title pt-1">lorem Ipsum 3</h6>
                                    <p class="card-text pb-1">Lorem ipsum dolor sit amet, consetetur sadipscing elitr.  </p>
                                </div>
                            </div>
                        </div>
                    </div>   <!-- end row-->
                </div>

                <!-- Wrapper 2 -->
                <div class="wrapper2 col-md-9 hidden-hoverReveal py-4">
                        <div class="row">
                            <div class="col-md-4">
                                <div class="card">
                                    <img class="card-img-top img-fluid" src="https://placeimg.com/205/101/people" style="width:100%">
                                    <div class="card-body p-0">
                                        <h6 class="card-title pt-1">lorem Ipsum 4</h6>
                                        <p class="card-text pb-1">Consetetur sadipscing elitr, sed diam nonumy eirmod tempor  </p>
                                    </div>
                                </div>
                            </div>
                        
                            <div class="col-md-4">
                                <div class="card">
                                    <img class="card-img-top img-fluid" src="https://placeimg.com/205/101/tech" style="width:100%">
                                    <div class="card-body p-0">
                                        <h6 class="card-title pt-1">lorem Ipsum 5</h6>
                                        <p class="card-text pb-1">Nam liber tempor cum soluta nobis eleifend option congue  </p>
                                    </div>
                                </div>
                            </div>
                
                            <div class="col-md-4 pr-4">
                                <div class="card">
                                    <img class="card-img-top img-fluid" src="https://placeimg.com/205/101/tech/sepia" style="width:100%">
                                    <div class="card-body p-0">
                                        <h6 class="card-title pt-1">lorem Ipsum 6</h6>
                                        <p class="card-text pb-1">Ut wisi enim ad minim veniam, quis nostrud exerci tation   </p>
                                    </div>
                                </div>
                            </div>
                        </div>   <!-- end row-->
                    </div>
              
                    <!-- Wrapper 3 -->
                    <div class="wrapper3 col-md-9 hidden-hoverReveal py-4">
                            <div class="row">
                                <div class="col-md-4">
                                    <div class="card">
                                        <img class="card-img-top img-fluid" src="https://placeimg.com/205/101/arch" style="width:100%">
                                        <div class="card-body p-0">
                                            <h6 class="card-title pt-1">lorem Ipsum 7</h6>
                                            <p class="card-text pb-1">Duis autem vel eum iriure dolor in hendrerit in vulputate velit </p>
                                        </div>
                                    </div>
                                </div>
                            
                                <div class="col-md-4">
                                    <div class="card">
                                        <img class="card-img-top img-fluid" src="https://placeimg.com/205/101/animals" style="width:100%">
                                        <div class="card-body p-0">
                                            <h6 class="card-title pt-1">lorem Ipsum 8</h6>
                                            <p class="card-text pb-1">Lorem ipsum dolor sit amet, consetetur sadipscing elitr.</p>
                                        </div>
                                    </div>
                                </div>
                    
                                <div class="col-md-4 pr-4">
                                    <div class="card">
                                        <img class="card-img-top img-fluid" src="https://placeimg.com/205/101/people/sepia" style="width:100%">
                                        <div class="card-body p-0">
                                            <h6 class="card-title pt-1">lorem Ipsum 9</h6>
                                            <p class="card-text pb-1">Nam liber tempor cum soluta nobis eleifend option congue.</p>
                                        </div>
                                    </div>
                                </div>
                            </div>   <!-- end row-->
                   </div>

            </div>
         </div> 
    </section>


              
            
!

CSS

              
                #child-pages-section .container {
    border: 2px solid lightgrey;
    margin: 20px auto;
    height: 100%;  
}

.hidden-hoverReveal {
    display: none;
}

.active-hoverReveal{
    display: block;
}


#child-pages-section .col {
    background-color: lightgrey;
    color: #993408; 
    padding: 20px 0 0 0px; 
    margin-right: 12px;
    display: inline-block;
}


.parent-pages h2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1rem !important;
    margin: 0 0 30px 0px;
    padding-left: 10px;
}

.card {
    border: none;
}

.card h6 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 15px;
    color: #000;
    font-weight: 700;
}

.card p {
    font-family: Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}


.active-parent {
    background: url(https://robdoylecreative.com/wp-content/uploads/2020/02/brown-notch.png) no-repeat right;
    background-size: 4% 100%; /*width and height of the notch image*/
    position: relative; 
    padding-left: 10px;
    color: #fff !important;
    z-index: 1; 
    right: 0;
}

.active-parent::before {
    content: "";
    background-color: #AB5511;
    background-position: left;
    position: absolute;
    display: inline-block;
    left: 0;
    z-index: -1;
    font-size: 1rem; 
    width: 96%; /*width of the css background*/
    height: 100%;
}

              
            
!

JS

              
                // Delayed hover on headings one, two and three. All three wrappers are nested within to alternate in line with the delayed hovers
$( '.parent' ).hover(
    function() {
      $('.active-parent').removeClass('active-parent');
      $(this).addClass('active-parent');
    },

    //   Hover reveal for wrapper 1
    $('.hoverReveal1').hover(
      function() {
        $('.wrapper2, .wrapper3').hide();
        $('.wrapper1').show();
      }
    ),

    //   Hover reveal for wrapper 2
    $('.hoverReveal2').hover(
      function() {
        $('.wrapper1, .wrapper3').hide();
        $('.wrapper2').show();
      }
    ),

    //   Hover reveal for wrapper 3
    $('.hoverReveal3').hover(
      function() {
        $('.wrapper1, .wrapper2').hide();
        $('.wrapper3').show();
      }
    )
  );

              
            
!
999px

Console