Skip to content

multiple pins within same container not working #47

Description

@line32

Code is below. It will pin my .one element, but ignores my attempt to pin .two and .three

<style type="text/css">
    .one, .two, .three { 
        width: 100%;
        height: 500px;
        background-size: 100% auto;
        position: relative;
    }
    .one {
        z-index: 1 !important;
    }
    .two {
        z-index: 11 !important;
    }
    .three {
        z-index: 111 !important;
    }
</style>
<div class="mymain">
    <div>
    This is a nav section.<br />
    </div>
    <div class="main">
        <div class="one " >
            <h2>Section 1</h2>
            <p>Lorem ipsum dolar sit amet. Lorem ipsum blah blaah.</p>
            <p>Lorem ipsum dolar sit amet. Lorem ipsum blah blaah.</p>
        </div>
        <div class="two " >
            <h2>Section 2</h2>
            <p>Lorem ipsum dolar sit amet. Lorem ipsum blah blaah.</p>
            <p>Lorem ipsum dolar sit amet. Lorem ipsum blah blaah.</p>
        </div>
        <div class="three">
            <h2>Section 3</h2>
            <p>Lorem ipsum dolar sit amet. Lorem ipsum blah blaah.</p>
            <p>Lorem ipsum dolar sit amet. Lorem ipsum blah blaah.</p>
        </div>
    </div>
</div>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
    <script src="http://enterprise.blob.core.windows.net/microsoftcloud/pih/jquery.pin.js"></script>
    <script>


    $(".one").pin({containerSelector: ".main"})

    $(".two").pin({containerSelector: ".main"})
    $(".three").pin({containerSelector: ".main"})

    </script>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions