Skip to content

leifmarcus/splitScroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

splitScroll Plugin

Split screen scrolling with fixed elements in plain javascript.

<!-- Main split scroll wrapper -->
<div class="splitscroll">

    <!-- Left Side -->
    <div class="splitscroll__left">
        <div class="splitscroll__item">
            <div class="splitscroll__mover">nix</div>
        </div>
    </div>

    <!-- Right Side -->
    <div class="splitscroll__right">
        <div class="splitscroll__item">
            <div class="splitscroll__mover">nix</div>
        </div>
    </div>
</div>

start split scroller

let splitScroller = null;

document.addEventListener( 'DOMContentLoaded', () => {
    splitScroller = splitScroll();
} );

Options

option key default description
name 'splitscroll'
scrollItem 'item'
mover 'mover'

About

two sided screen scrolling with fixed elements

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published