JSFiddle - React, Tailwind, and code Playground

by Ahmad Baktash Hayeri

HTML

<script src="http://www.thepetedesign.com/demos/jquery.onepage-scroll.js"></script>
<link rel="stylesheet" href="http://www.thepetedesign.com/demos/onepage-scroll.css">
<header>this is the top banner</header>
<section style=" height: calc(100% - 50px); top:50px;">
    <article>
        <div>
            <div>1 this is the first cell</div>
        </div>
        <div>
            <div>this is the second</div>
        </div>
    </article>
    <article>
        <div>
            <div>2 this is the first cell</div>
        </div>
        <div>
            <div>this is the second</div>
        </div>
    </article>
    <article>
        <div>
            <div>3 this is the first cell</div>
        </div>
        <div>
            <div>this is the second</div>
        </div>
    </article>
</section>

SCSS

html, body {
    height:100%;
    padding:0;
    margin:0;
}
header{height: 50px;position: absolute;top:0;left:0;z-index:100;background:yellow;opacity:.5;width:100%;}
section {
    background: beige;
    box-sizing: border-box;
   
    width: 100%;
}
article {
    position: absolute;
    display: table-row;
    background:brown;
    height: 100%;
    width: 100%;
    > div {
        float: left;
        width: 50%;
        height: 100%;
        border: 1px solid blue;
        box-sizing: border-box;
        display: table;
        text-align: center;
        div {
            display: table-cell;
            vertical-align: middle;
        }
    }
    > div:first-of-type {
        background:red;
    }
    > div:last-of-type {
        background:lightgreen;
    }
}

JavaScript

$("section").onepage_scroll({
    sectionContainer: "article",
    loop: false
});