Scrollview - Paging

Choose demo
$(function () {

    var $currContent,
        $conts = $('.md-cont'),
        $currMenu = $('.md-selected'),
        $currCategory = $currMenu.find('.md-category');

    // init bottom navigation    
    $('.main-menu').mobiscroll().nav({
        lang: '',
        theme: '',
        type: 'bottom',
        onItemTap: function (event, inst) {
            var item = $(event.target);
            $currCategory = $('.' + item.data('page')).find('.md-category');
            $currMenu = $('.' + item.data('page'));
            $currContent = $currMenu.find('.md-content');
            // show the new content
            $conts.removeClass('md-selected');
            $currMenu.addClass('md-selected');
            // refresh category
            $currCategory.mobiscroll('navigate', $currCategory.children().eq(0), true);
            $currCategory.mobiscroll('refresh');
            // refresh content
            $currContent.mobiscroll('refresh');
            $currContent.mobiscroll('navigate', $currContent.find('li').eq(0));

        }
    });

    // init top tabs
    $('.md-category').mobiscroll().nav({
        lang: '',
        theme: '',
        type: 'tab',
        onItemTap: function (event, inst) {
            $currMenu.find('.md-content').mobiscroll('navigate', $('.' + $(event.target).data('page')));
        }

    });

    // init content scrollview
    $('.md-content').mobiscroll().scrollview({
        lang: '',
        theme: '',
        layout: 1,
        paging: true,
        threshold: 15,
        cssClass: 'md-page',
        onAnimationStart: function (event, inst) {
            if (event.destinationX != event.originX) {
                $currCategory.mobiscroll('navigate', $('.' + $(this).data('cat') + ' li').eq(-(event.destinationX / inst.contWidth)));
            }
        }
    });

    // init content listview
    $('.md-list').mobiscroll().listview({
        lang: '',
        theme: '',
        swipe: false,
        striped: true,
        onItemTap: function () {},
        enhance: true,    });
});
<div class="md-paging">
    <ul class="main-menu" style="display:none;">
        <li data-id="1" data-icon="music" data-selected="true" data-page="md-music-cont">Music</li>
        <li data-id="2" data-icon="book" data-page="md-book-cont">Books</li>
        <li data-id="3" data-icon="film" data-page="md-movie-cont">Movies</li>
    </ul>

    <div class="md-cont md-music-cont md-selected">
        <ul class="md-category md-music-category" style="display:none;">
            <li data-id="1" data-page="md-pop" data-selected="true">Pop</li>
            <li data-id="2" data-page="md-rock">Rock</li>
            <li data-id="3" data-page="md-jazz">Jazz</li>
            <li data-id="4" data-page="md-piano">Piano</li>
            <li data-id="5" data-page="md-electric">Electric</li>
        </ul>

        <ul class="md-content" data-cat="md-music-category" style="display:none;">
            <li class="md-pop">
                <ul class="md-music-lv md-list" style="display:none;">
                    <li data-icon="play" data-icon-align="right"><img src="/Content/img/demos/paging/Adele_1x.png" />
                        <h4>Hello</h4>
                        <p>Adele</p>
                    </li>
                    <!-- Showing partial data. Download full source. -->
                </ul>

            </li>

            <li class="md-rock">
                <ul class="md-music-lv md-list" style="display:none;">
                    <li data-icon="play" data-icon-align="right"><img src="/Content/img/demos/paging/Elle_King_1x.png" />
                        <h4>Ex's & Oh's</h4>
                        <p>Elle King</p>
                    </li>
                </ul>

            </li>

            <li class="md-jazz">
                <ul class="md-music-lv md-list" style="display:none;">
                    <li data-icon="play" data-icon-align="right"><img src="/Content/img/demos/paging/Jeff_Lorber_1x.png" />
                        <h4>Get Up</h4>
                        <p>Jeff Lorber Fusion</p>
                    </li>
                </ul>

            </li>

            <li class="md-piano">
                <ul class="md-music-lv md-list" style="display:none;">
                    <li data-icon="play" data-icon-align="right"><img src="/Content/img/demos/paging/Rachmaninoff_1x.png" />
                        <h4>Etudes Tableaux</h4>
                        <p>Rachmaninoff</p>
                    </li>
                </ul>

            </li>

            <li class="md-electric">
                <ul class="md-music-lv md-list" style="display:none;">
                    <li data-icon="play" data-icon-align="right"><img src="/Content/img/demos/paging/Major-Lazer_1x.png" />
                        <h4>Lean On</h4>
                        <p>Major Lazer & DJ Snake Featuring M0</p>
                    </li>
                </ul>
            </li>
        </ul>
    </div>

    <div class="md-cont md-book-cont">
        <ul class="md-category md-book-category" style="display:none;">
            <li data-id="1" data-page="md-fantasy" data-selected="true">Fantasy</li>
            <li data-id="2" data-page="md-edu">Education</li>
            <li data-id="3" data-page="md-history">History</li>
            <li data-id="4" data-page="md-scifi">Sci-Fi</li>
            <li data-id="5" data-page="md-romance">Romance</li>
        </ul>

        <ul class="md-content" data-cat="md-book-category" style="display:none;">
            <li class="md-fantasy">
                <ul class="md-music-lv md-list" style="display:none;">
                    <li data-icon="play" data-icon-align="right"><img src="/Content/img/demos/paging/The_Lord_Of_The_Rings_1x.png" />
                        <h4>The Lord Of The Rings</h4>
                        <p>J.R.R. Tolkien</p>
                    </li>
                </ul>
            </li>

            <li class="md-edu">
                <ul class="md-music-lv md-list" style="display:none;">
                    <li data-icon="play" data-icon-align="right"><img src="/Content/img/demos/paging/Do_Androids_Dream_Of_Electric_Sheep_1x.png" />
                        <h4>Do Androids Dream Of Electric Sheep?</h4>
                        <p>Philip K. Dick</p>
                    </li>
                </ul>
            </li>

            <li class="md-history">
                <ul class="md-music-lv md-list" style="display:none;">
                    <li data-icon="play" data-icon-align="right"><img src="/Content/img/demos/paging/Humans_of_New_York_Stories_1x.png" />
                        <h4>Humans of New York: Stories</h4>
                        <p>by Brandon Stanton</p>
                    </li>
                </ul>

            </li>

            <li class="md-scifi">
                <ul class="md-music-lv md-list" style="display:none;">
                    <li data-icon="play" data-icon-align="right"><img src="/Content/img/demos/paging/The_Mote_In_God's_Eye_1x.png" />
                        <h4>The Mote In God's Eye</h4>
                        <p>Larry NivenJerry Pournelle</p>
                    </li>
                </ul>
            </li>

            <li class="md-romance">
                <ul class="md-music-lv md-list" style="display:none;">
                    <li data-icon="play" data-icon-align="right"><img src="/Content/img/demos/paging/Bad_Boy's_Baby_1x.png" />
                        <h4>Bad Boy's Baby</h4>
                        <p>by Sosie Frost</p>
                    </li>
                </ul>
            </li>

        </ul>
    </div>

    <div class="md-cont md-movie-cont">
        <ul class="md-category md-movie-category" style="display:none;">
            <li data-id="1" data-page="md-movie-fantasy" data-selected="true">Fantasy</li>
            <li data-id="2" data-page="md-movie-edu">Horror</li>
            <li data-id="3" data-page="md-movie-animation">Animation</li>
            <li data-id="4" data-page="md-movie-scifi">Sci-Fi</li>
            <li data-id="5" data-page="md-movie-romance">Romance</li>
        </ul>

        <ul class="md-content" data-cat="md-movie-category" style="display:none;">
            <li class="md-movie-fantasy">
                <ul class="md-music-lv md-list" style="display:none;">
                    <li data-icon="play" data-icon-align="right"><img src="/Content/img/demos/paging/The_Seven_Samurai_1x.png" />
                        <h4>The Seven Samurai</h4>
                        <p>by Akira Kurosawa</p>
                    </li>
                </ul>
            </li>

            <li class="md-movie-edu">
                <ul class="md-music-lv md-list" style="display:none;">
                    <li data-icon="play" data-icon-align="right"><img src="/Content/img/demos/paging/Psycho_1x.png" />
                        <h4>Psycho</h4>
                        <p>by Alfred Hitchcock</p>
                    </li>
                </ul>
            </li>

            <li class="md-movie-animation">
                <ul class="md-music-lv md-list" style="display:none;">
                    <li data-icon="play" data-icon-align="right"><img src="/Content/img/demos/paging/Chaar_Sahibzaade_1x.png" />
                        <h4>Chaar Sahibzaade</h4>
                        <p>by Harry Baweja</p>
                    </li>
                </ul>
            </li>

            <li class="md-movie-scifi">
                <ul class="md-music-lv md-list" style="display:none;">
                    <li data-icon="play" data-icon-align="right"><img src="/Content/img/demos/paging/Inception_1x.png" />
                        <h4>Inception</h4>
                        <p>by Christopher Nolan</p>
                    </li>
                </ul>
            </li>

            <li class="md-movie-romance">
                <ul class="md-music-lv md-list" style="display:none;">
                    <li data-icon="play" data-icon-align="right"><img src="/Content/img/demos/paging/The_Princess_Bride_1x.png" />
                        <h4>The Princess Bride</h4>
                        <p>by Rob Reiner</p>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
</div>
body,
.mbsc-page {
    margin: 0;
    padding: 0;
    height: 100%;
}

.demo-paging,
.md-paging,
.md-paging>div,
.md-paging .md-page {
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.md-paging .md-cont {
    display: none;
}

.md-paging .md-selected {
    display: block;
}

.md-paging .md-list,
.md-paging .mbsc-lv-cont {
    height: 100%;
    overflow: auto;
}

.md-paging .mbsc-lv-img {
    border-radius: 2.8em;
    height: 2.8em;
}

Scrollview - Cards

Choose demo
$(function () {

    $('.demo-card li').mobiscroll().card({
        theme: ''
    });
    
    $('.demo-card').mobiscroll().scrollview({
        theme: '',
        layout: 'fixed',
        itemWidth: 134
    });

});
<div class="md-cards">
    <div class="md-card-cont">
        <h3>New & Updated Games</h3>
        <ul class="demo-card" style="display:none;">
            <li>
                <div class="mbsc-card-content">
                    <img class="md-img" src="/Content/img/demos/worms3.png">
                    <div class="mbsc-card-title">Worms 3</div>
                    <div class="mbsc-card-subtitle">Team 17 Digital Limited</div>
                    <div class="md-rank">4.2<span class="mbsc-ic mbsc-ic-star3"></span></div>
                </div>
            </li>
            <!-- Showing partial data. Download full source. -->
        </ul>
        <h3>Media & Video Apps</h3>
        <ul class="demo-card" style="display:none;">
            <li>
                <div class="mbsc-card-content">
                    <img class="md-img" src="/Content/img/demos/vlc.png">
                    <div class="mbsc-card-title">VLC for Android</div>
                    <div class="mbsc-card-subtitle">Videolabs </div>
                    <div class="md-rank">4.3<span class="mbsc-ic mbsc-ic-star3"></span></div>
                </div>
            </li>
        </ul>

        <h3>New & Updated Apps</h3>
        <ul class="demo-card" style="display:none;">
            <li>
                <div class="mbsc-card-content">
                    <img class="md-img" src="/Content/img/demos/netflix.png">
                    <div class="mbsc-card-title">Netflix</div>
                    <div class="mbsc-card-subtitle">Netflix, Inc. </div>
                    <div class="md-rank">4.4<span class="mbsc-ic mbsc-ic-star3"></span></div>
                </div>
            </li>
        </ul>

        <h3>Tools</h3>
        <ul class="demo-card" style="display:none;">
            <li>
                <div class="mbsc-card-content">
                    <img class="md-img" src="/Content/img/demos/note.png">
                    <div class="mbsc-card-title">Notes</div>
                    <div class="mbsc-card-subtitle">Rabbit</div>
                    <div class="md-rank">4.2<span class="mbsc-ic mbsc-ic-star3"></span></div>
                </div>
            </li>
        </ul>

        <h3>Capture the Moment</h3>
        <ul class="demo-card" style="display:none;">
            <li>
                <div class="mbsc-card-content">
                    <img class="md-img" src="/Content/img/demos/hscam.png">
                    <div class="mbsc-card-title">High-Speed Camera</div>
                    <div class="mbsc-card-subtitle">HANTOR</div>
                    <div class="md-rank">4.1<span class="mbsc-ic mbsc-ic-star3"></span></div>
                </div>
            </li>
        </ul>

    </div>
</div>
.md-cards h3 {
    padding: .5em;
    margin: 0;
}

.demo-card .mbsc-scv-item {
    padding: 0 0 2em 0;
    -webkit-box-pack: start;
    -moz-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-justify-content: flex-start;
    justify-content: flex-start;
}

.demo-card .mbsc-card-content {
    padding: 8px;
}

.md-img {
    border-radius: 8px;
}

.demo-card .mbsc-card-title {
    font-size: 14px;
    padding-top: 8px;
    margin: 0;
}

.demo-card .mbsc-card-subtitle {
    font-size: 11px;
    padding-top: 3px;
    margin: 0;
}

.demo-card .mbsc-ic {
    padding-left: 3px;
}

.md-rank {
    font-size: 12px;
    position: absolute;
    bottom: 8px;
    left: 8px;
}
light
dark
light
dark

Looking for something you didn't see or have a sales question?
Ask us about it, we're here to help.

Customize & try demos locally
Please sign in or start a free trial to download

What is your main focus at the moment?

Javascript
jQuery
AngularJS
Angular
Ionic
React
Other
Select a framework
Select a framework
Email address
Select a framework

Install demo in your app
Follow steps to install mobiscroll and use example

Install Mobiscroll for Ionic

Step 1.

Install the Mobiscroll CLI from npm (you might need sudo access).

Copy command
$ npm install -g @mobiscroll/cli

Step 2.

Run the config command in the root folder of the Ionic project.
You will have to enter your email address/user and password (update password) of your mobiscroll account.
If you don't have an app, create a starter with the Ionic CLI $ ionic start myStarterApp tabs

Copy command
$ mobiscroll config ionic

Copy the demo to your app.
If Mobiscroll is already installed in your Ionic app grab and paste the code below. The HTML goes into markup and the Typescript into the TS file. If you need to install mobiscroll use the CLI.

Copy TS
Copy HTML
Copy CSS

Run ionic serve in the root folder of your app.

Copy command
$ ionic serve
Thanks for downloading
Try and customize the app locally

Extract the zip file and run the project like any Ionic app. Make sure to have Ionic CLI installed and open the terminal in the app root folder.

Step 1. Run in root folder
$ npm install
Step 2. Start the app
$ ionic serve

Let us know if we can help and enjoy!

Change your password
Need to update your password? Enter and hit the button below
New Password Required Enter at least 6 characters Please avoid dangerous characters like '<' or '&'
Change your password
Need to update your password? Enter and hit the button below

Your password has been changed!

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

We have set up a trial so that you can try the demos locally.

Please extract the zip file and simply open the demos in your favorite browser. For instructions on how to install Mobiscroll in your project follow this guide.


Let us know if we can help and enjoy!

Thanks for downloading
Customize demos locally

The demos are using an in-browser TypeScript transpiler app as base. Please extract the zip file and open the index.html on your local development server.

Alternatively you can use live-server. For installation and usage, open a terminal window and follow these steps.

Step 1. Install live-server
$ npm install -g live-server
Step 2. Start server & run app
$ live-server

Let us know if we can help and enjoy!

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

We have set up a trial so that you can try the demos locally.

The easiest way to get started is to follow the installation steps and by grabbing the code directly from the demo page. Let us know if we can help and enjoy!

You'll find a fully functional Kitchen-sink Ionic app in the zip file.

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

We have set up a trial so that you can try the demos locally.

The demos are using Babel's in-browser ES6 and JSX transformer. Please extract the zip file and open the demos in your browser.


Let us know if we can help and enjoy!

Demos
Scrollview
Paging Cards
Scrollview
Paging Cards
Controls
Calendar 14
Cards 9
Color 8
Date & Time 12
Event Calendar 6
Forms 24
Image 5
Listview 18
Measurement 14
Navigation 6
Number 6
Numpad 12
Option List 4
Range 14
Scroller 5
Scrollview 2
Select 13
Styling 3
Timer 4
Timespan 5
Treelist 5
Widget 8
Demo Apps 5
Theme Select
Mobiscroll
Mobiscroll Dark
Material
Material Dark
iOS
iOS Dark
Bootstrap
Windows
Windows Dark
Display Mode
Language Locale
See other demos and change options
Theme
Display
Locale
See other demos