Drift BootStrap 4, HTML, jQuery
  • Overview
  • Installation and Setup
    • Setup
    • Folders and Files Structure
  • Stylesheets
    • Overview
    • Sass Variables
    • Layouts & Theme
    • Fonts
    • Colors
    • Margin & Paddings
    • Theme Customization
    • RTL Version
  • Components
    • Alerts
    • Badges
    • Breadcrumbs
    • Buttons
    • Button Group
    • Cards
    • Card Group
    • Collapse
    • Dropdowns
    • Input Group
    • Jumbotron
    • List Group
    • Navbar
    • Navs & Tabs
    • Pagination
    • Progress Bar
    • Scrollspy
    • Typography
  • Classic Version
    • Setup
    • Folders and Files Structure
    • Theme Customizaton
    • RTL Version
Powered by GitBook
On this page
  • Horizontal Scrollspy
  • Vertical Scrollspy
  • List Group Scrollspy

Was this helpful?

  1. Components

Scrollspy

PreviousProgress BarNextTypography

Last updated 5 years ago

Was this helpful?

Horizontal Scrollspy

<!-- Navigation Scrollspy -->
<nav id="scrollspy-horizontal" class="navbar navbar-light bg-light rounded mb-3">
    <a class="navbar-brand" href="javascript:void(0)">Navbar</a>
    <ul class="nav nav-pills">
        <li class="nav-item">
            <a class="nav-link active" href="#fat">@fat</a>
        </li>
        <li class="nav-item">
            <a class="nav-link" href="#mdo">@mdo</a>
        </li>
        <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a>

            <!-- Dropdown Menu -->
            <div class="dropdown-menu">
                <a class="dropdown-item" href="#one">one</a>
                <a class="dropdown-item" href="#two">two</a>
                <div role="separator" class="dropdown-divider"></div>
                <a class="dropdown-item" href="#three">three</a>
            </div>
            <!-- /dropdown menu -->

        </li>
    </ul>
</nav>
<!-- /navigation scrollspy -->

<!-- Scrollspy Content -->
<div class="scrollspy-horizontal" data-spy="scroll" data-target="#scrollspy-horizontal" data-offset="0">
    <h4 id="fat">@fat</h4>
    <p>
        Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim
        lo-fi before they sold out
        qui.
        Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan.
        Velit seitan
        mcsweeney's
        photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg
        hoodie minim qui you
        probably haven't heard of them et cardigan trust fund culpa biodiesel wes
        anderson aesthetic. Nihil
        tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.
    </p>
    <h4 id="mdo">@mdo</h4>
    <p>
        Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard.
        Freegan beard aliqua
        cupidatat mcsweeney's vero. Cupidatat four loko nisi, ea helvetica nulla
        carles. Tattooed cosby
        sweater
        food truck, mcsweeney's quis non freegan vinyl. Lo-fi wes anderson +1
        sartorial. Carles non
        aesthetic
        exercitation quis gentrify. Brooklyn adipisicing craft beer vice keytar
        deserunt.
    </p>
    <h4 id="one">one</h4>
    <p>
        Occaecat commodo aliqua delectus. Fap craft beer deserunt skateboard ea.
        Lomo bicycle rights
        adipisicing
        banh mi, velit ea sunt next level locavore single-origin coffee in magna
        veniam. High life id vinyl,
        echo park consequat quis aliquip banh mi pitchfork. Vero VHS est
        adipisicing. Consectetur nisi DIY
        minim
        messenger bag. Cred ex in, sustainable delectus consectetur fanny pack
        iphone.
    </p>
    <h4 id="two">two</h4>
    <p>
        In incididunt echo park, officia deserunt mcsweeney's proident master
        cleanse thundercats sapiente
        veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft
        beer. Single-origin
        coffee
        wayfarers irure four loko, cupidatat terry richardson master cleanse.
        Assumenda you probably haven't
        heard of them art party fanny pack, tattooed nulla cardigan tempor ad.
        Proident wolf nesciunt
        sartorial
        keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland
        before they sold out four
        loko.
        Locavore enim nostrud mlkshk brooklyn nesciunt.
    </p>
    <h4 id="three">three</h4>
    <p>
        Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim
        lo-fi before they sold out
        qui.
        Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan.
        Velit seitan
        mcsweeney's
        photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg
        hoodie minim qui you
        probably haven't heard of them et cardigan trust fund culpa biodiesel wes
        anderson aesthetic. Nihil
        tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.
    </p>
    <p>
        Keytar twee blog, culpa messenger bag marfa whatever delectus food truck.
        Sapiente synth id
        assumenda.
        Locavore sed helvetica cliche irony, thundercats you probably haven't heard
        of them consequat hoodie
        gluten-free lo-fi fap aliquip. Labore elit placeat before they sold out,
        terry richardson proident
        brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica artisan.
        Cardigan craft beer
        seitan
        readymade velit. VHS chambray laboris tempor veniam. Anim mollit minim
        commodo ullamco thundercats.
    </p>
</div>
<!-- /scrollspy content -->

Vertical Scrollspy

<!-- Row -->
<div class="row">

    <div class="col-sm-4 col-5">
        <!-- Navigation Scrollspy -->
        <nav id="scrollspy-vertical" class="navbar navbar-light bg-light">
            <a class="navbar-brand" href="#">Navbar</a>
            <nav class="nav nav-pills flex-column">
                <a class="nav-link active" href="#item-1">Item 1</a>
                <nav class="nav nav-pills flex-column">
                    <a class="nav-link ml-3 my-1" href="#item-1-1">Item 1-1</a>
                    <a class="nav-link ml-3 my-1" href="#item-1-2">Item 1-2</a>
                </nav>
                <a class="nav-link" href="#item-2">Item 2</a>
                <a class="nav-link" href="#item-3">Item 3</a>
                <nav class="nav nav-pills flex-column">
                    <a class="nav-link ml-3 my-1" href="#item-3-1">Item 3-1</a>
                    <a class="nav-link ml-3 my-1" href="#item-3-2">Item 3-2</a>
                </nav>
            </nav>
        </nav>
        <!-- /navigation scrollspy -->
    </div>

    <div class="col-sm-8 col-7">
        <!-- Scrollspy Content -->
        <div class="scrollspy-vertical" data-spy="scroll" data-target="#scrollspy-vertical" data-offset="0">
            <h4 id="item-1">@fat</h4>
            <p>
                Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr
                enim lo-fi before they sold
                out
                qui.
                Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles
                cardigan. Velit seitan
                mcsweeney's
                photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts,
                williamsburg hoodie minim qui you
                probably haven't heard of them et cardigan trust fund culpa
                biodiesel wes anderson aesthetic.
                Nihil
                tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco
                consequat.
            </p>
            <h5 id="item-1-1">@mdo</h5>
            <p>
                Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork
                beard. Freegan beard aliqua
                cupidatat mcsweeney's vero. Cupidatat four loko nisi, ea helvetica
                nulla carles. Tattooed cosby
                sweater
                food truck, mcsweeney's quis non freegan vinyl. Lo-fi wes anderson
                +1 sartorial. Carles non
                aesthetic
                exercitation quis gentrify. Brooklyn adipisicing craft beer vice
                keytar deserunt.
            </p>
            <h5 id="item-1-2">one</h5>
            <p>
                Occaecat commodo aliqua delectus. Fap craft beer deserunt skateboard
                ea. Lomo bicycle rights
                adipisicing
                banh mi, velit ea sunt next level locavore single-origin coffee in
                magna veniam. High life id
                vinyl,
                echo park consequat quis aliquip banh mi pitchfork. Vero VHS est
                adipisicing. Consectetur nisi
                DIY
                minim
                messenger bag. Cred ex in, sustainable delectus consectetur fanny
                pack iphone.
            </p>
            <h4 id="item-2">two</h4>
            <p>
                In incididunt echo park, officia deserunt mcsweeney's proident
                master cleanse thundercats
                sapiente
                veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum
                craft beer. Single-origin
                coffee
                wayfarers irure four loko, cupidatat terry richardson master
                cleanse. Assumenda you probably
                haven't
                heard of them art party fanny pack, tattooed nulla cardigan tempor
                ad. Proident wolf nesciunt
                sartorial
                keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea
                portland before they sold out
                four
                loko.
                Locavore enim nostrud mlkshk brooklyn nesciunt.
            </p>
            <h4 id="item-3">three</h4>
            <p>
                Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr
                enim lo-fi before they sold
                out
                qui.
                Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles
                cardigan. Velit seitan
                mcsweeney's
                photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts,
                williamsburg hoodie minim qui you
                probably haven't heard of them et cardigan trust fund culpa
                biodiesel wes anderson aesthetic.
                Nihil
                tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco
                consequat.
            </p>
            <h5 id="item-3-1">three</h5>
            <p>
                Keytar twee blog, culpa messenger bag marfa whatever delectus food
                truck. Sapiente synth id
                assumenda.
                Locavore sed helvetica cliche irony, thundercats you probably
                haven't heard of them consequat
                hoodie
                gluten-free lo-fi fap aliquip. Labore elit placeat before they sold
                out, terry richardson
                proident
                brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica
                artisan. Cardigan craft beer
                seitan
                readymade velit. VHS chambray laboris tempor veniam. Anim mollit
                minim commodo ullamco
                thundercats.
            </p>
            <h5 id="item-3-2">three</h5>
            <p>
                Keytar twee blog, culpa messenger bag marfa whatever delectus food
                truck. Sapiente synth id
                assumenda.
                Locavore sed helvetica cliche irony, thundercats you probably
                haven't heard of them consequat
                hoodie
                gluten-free lo-fi fap aliquip. Labore elit placeat before they sold
                out, terry richardson
                proident
                brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica
                artisan. Cardigan craft beer
                seitan
                readymade velit. VHS chambray laboris tempor veniam. Anim mollit
                minim commodo ullamco
                thundercats.
            </p>
        </div>
        <!-- /scrollspy content -->
    </div>

</div>
<!-- /row -->

List Group Scrollspy

<!-- Row -->
<div class="row">

    <div class="col-sm-4 col-5">
        <!-- Navigation Scrollspy -->
        <div id="scrollspy-list-group" class="list-group">
            <a class="list-group-item list-group-item-action active" href="#list-item-1">Item
                1</a>
            <a class="list-group-item list-group-item-action" href="#list-item-2">Item
                2</a>
            <a class="list-group-item list-group-item-action" href="#list-item-3">Item
                3</a>
            <a class="list-group-item list-group-item-action" href="#list-item-4">Item
                4</a>
        </div>
        <!-- /navigation scrollspy -->
    </div>

    <div class="col-sm-8 col-7">
        <!-- Scrollspy Content -->
        <div class="scrollspy-list-group" data-spy="scroll" data-target="#scrollspy-list-group" data-offset="0">
            <h4 id="list-item-1">@fat</h4>
            <p>
                Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr
                enim lo-fi before they sold
                out
                qui.
                Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles
                cardigan. Velit seitan
                mcsweeney's
                photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts,
                williamsburg hoodie minim qui you
                probably haven't heard of them et cardigan trust fund culpa
                biodiesel wes anderson aesthetic.
                Nihil
                tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco
                consequat.
            </p>
            <h4 id="list-item-2">two</h4>
            <p>
                In incididunt echo park, officia deserunt mcsweeney's proident
                master cleanse thundercats
                sapiente
                veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum
                craft beer. Single-origin
                coffee
                wayfarers irure four loko, cupidatat terry richardson master
                cleanse. Assumenda you probably
                haven't
                heard of them art party fanny pack, tattooed nulla cardigan tempor
                ad. Proident wolf nesciunt
                sartorial
                keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea
                portland before they sold out
                four
                loko.
                Locavore enim nostrud mlkshk brooklyn nesciunt.
            </p>
            <h4 id="list-item-3">three</h4>
            <p>
                Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr
                enim lo-fi before they sold
                out
                qui.
                Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles
                cardigan. Velit seitan
                mcsweeney's
                photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts,
                williamsburg hoodie minim qui you
                probably haven't heard of them et cardigan trust fund culpa
                biodiesel wes anderson aesthetic.
                Nihil
                tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco
                consequat.
            </p>
            <h4 id="list-item-4">three</h4>
            <p>
                Keytar twee blog, culpa messenger bag marfa whatever delectus food
                truck. Sapiente synth id
                assumenda.
                Locavore sed helvetica cliche irony, thundercats you probably
                haven't heard of them consequat
                hoodie
                gluten-free lo-fi fap aliquip. Labore elit placeat before they sold
                out, terry richardson
                proident
                brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica
                artisan. Cardigan craft beer
                seitan
                readymade velit. VHS chambray laboris tempor veniam. Anim mollit
                minim commodo ullamco
                thundercats.
            </p>
        </div>
        <!-- /scrollspy content -->
    </div>

</div>
<!-- /row -->