Tuesday, May 19, 2020

jQuery Multiscroll.js Plugin

Hello guys! Welcome to a new section of my tutorial on jQuery. In this tutorial guide, am going to be discussing about jQuery Multiscroll Plugin.

Multiscroll.js is a jQuery plugin for creating split pages with two vertical scrolling panel.


Below is a simple Multiscroll example -

<!DOCTYPE  html  lang = "en">
<html   xmlns =  "https://www.w3.org/1999/xhtml">
          <meta  http-equiv = "Content-Type"  content = "text/html;  charset = utf-8">
          <title>Multiscroll Plugin Example</title>

          <link  type = "text/css"  rel = "stylesheet"
               href = "/jquery/src/multiscroller/jquery.multiscroll.css"  />

          <link  type = "text/css"  rel = "stylesheet"
               href = "/jquery/src/multiscroller/examples.css"  />

          <script  src = "https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"
               type = "text/javascript">

          <script  src = "/jquery/src/multiscroller/jquery.easings.min.js"
               type = "text/javascript">

          <script  src = "/jquery/src/multiscroller/jquery.multiscroll.js"
               type = "text/javascript">

          <script  type = "text/javascript">
               $( document ).ready( function( )  {
                    $( '#myContainer' ).multiscroll( {
                         sectionsColor:   [ '#1bbc9b' ,   '#4BBFC3' ,   '#7BAABE' ] ,
                         anchors:  [ 'first' ,   'second' ,   'third' ] ,
                         menu:   '#menu' ,
                         navigation:   true ,
                         navigationTooltips:  [ 'One' ,    'Two' ,   'Three' ] ,
                         loopBottom:  true ,
                         loopTop:  true
                    } );
               } );

          <ul  id = "menu">
               <li  data-menuanchor = "first"><a  href = "#first">First Slide</a></li>
               <li  data-menuanchor = "second"><a  href = "#second">Second Slide</a></li>             
               <li  data-menuanchor = "third"><a  href = "#third">Third Slide</a></li>

          <div  id = "myContainer">
               <div  class = "ms-left">

                    <div  class = "ms-section"   id = "left1">
                         <h1>Left 1</h1>

                    <div  class = "ms-section"   id = "left2">
                         <h1>Left 2</h1>


                    <div  class = "ms-section"   id = "left3">
                         <h1>Left 3</h1>



               <div  class = "ms-right">

                    <div  class = "ms-section"   id = "right1">
                         <h1>Right 1</h1>

                    <div  class = "ms-section"   id = "right2">
                         <h1>Right 2</h1>


                    <div  class = "ms-section"   id = "right3">
                         <h1>Right 3</h1>



Alright guys! This is where we are wrapping it up with this tutorial. In my next tutorial post, i will be discussing about the jQuery Slidebar plugin. Feel free to ask your questions where necessary and i will attend to them as soon as possible.

If you found this tutorial helpful and interesting, kindly use the share button to share this tutorial. Follow us on our various social media platforms available to stay updated with our latest posts. Also subscribe to our newsletter to get all our tutorials delivered directly to your emails.

Thanks for reading and bye for now.


Post a Comment

Hello dear readers! Please kindly try your best to make sure your comments comply with our comment policy guidelines. You can visit our comment policy page to view these guidelines which are clearly stated. Thank you.