Single One Page Scrolling Website In Pure JavaScript | skrllr.js

skrllr.js is a flexible JavaScript plugin that implements a basic full-screen, single one-page scrolling effect for your long web content. It also supports mouse wheel and keyboard interactions.

one page scroll website template free, single page scrolling website html, minimalist one page website, one page scroll example

Create One Page Multi Scrolling Split Websites | multiScroll.js

How to make use of it:

1. Add the split pages to the HTML document as follows:

<div class="wrapper">
  <main>
    <section class="section">
      <h1>Section 01</h1>
    </section>
    <section class="section">
      <h1>Section 02</h1>
    </section>
    <section class="section">
      <h1>Section 03</h1>
    </section>
    <section class="section">
      <h1>Section 04</h1>
    </section>
    <section class="section">
      <h1>Section 05</h1>
    </section>
  </main>
</div>

2. Create a one-page scrolling website navigation:

<nav class="main-menu">
  <ul class="pagination">
    <li><a></a></li>
    <li><a></a></li>
    <li><a></a></li>
    <li><a></a></li>
    <li><a></a></li>
  </ul>
</nav>

3. CSS to make the split pages full screen.

.skrllr-wrapper {
  position: relative;
  display: block;
  width: 100vw;
  height: 100%;
  padding: 0;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}
.skrllr-section {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.wrapper {
  height: 100% !important;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
}

4. Navigation mode:

.main-menu {
  position: absolute;
  top: 50%;
  right: 20px;
}
.pagination { list-style: none; }
.pagination li {
  position: relative;
  width: 20px;
  height: 20px;
  margin-bottom: 10px
}
.pagination li a {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background-color: black;
  border-radius: 50%;
  margin-bottom: 10px
}
.pagination li a:hover,  .pagination li a.active {
  background-color: white;
  border: 2px solid black;
}

5. Configure Skrllr on the “main” content.

const skrllr = new Skrllr('main', {
      // options here
})

6. Configure a single page scroll behavior.

const skrllr = new Skrllr('main', {
      // child container
      container: 'section',
      // easing function
      easing: 'ease',
      // transition time in ms
      transitionTime: 1000,
      // shows pagination
      pagination: true,
      // custom menu
      menu: null,
      // auto update url when switching
      updateURL: false,
      // callback functions
      beforeTransition: null,
      afterTransition: null
      
})

Minimal One Page Scroll, skrllr Plugin/Github, single page no scroll website template, one page website template


See Demo And Download

Official Website(builtbyedgar): Click Here

This superior jQuery/javascript plugin is developed by builtbyedgar. For extra advanced usage, please go to the official website.

Related Posts

drag-drop-file-5x5-jq-uploader

Responsive Drag and Drop File Uploader/Download Plugin | 5x5_jq_uploader

5x5_jq_uploader plugin can be used to instantly create a drop file area and file queue with a little bit of preparation. Bootstrap is used for responsive planning…

Bootstrap-Dark-Mode

Stylesheet For Implementing Dark Mode with Bootstrap

Bootstrap Dark Mode provides a style sheet and two texts that allow you to implement Dark Mode on your website. Initially loaded based on user preferences, can…

responsive-navigation-menu

Multi-purpose Navigation Menu for Javascript Library | jQuery Corenav

coreNavigation is a multipurpose navigation menu for a jquery based javascript library, comes with more style, and is easy to integrate. 11 Default Menu 2 Responsive Navigation…

Simple-Multi-Select-Dropdown-Pure-Vanilla-Javascript

Simple Multi-Select Dropdown Pure Vanilla Javascript | multiSelect.js

MultiSelect.js is a simple, clean, and progressive JavaScript library designed for easy integration with any type of project or system. The design was heavily influenced by the…

Confetti-Falling-Animation-Effect-party

Confetti Falling Animation Effect In JavaScript | party.js

Party.js is a JavaScript library to brighten user site experience with visual effects! Celebrate success with dom confetti! The library is written in TypeScript and compiled into…

how-to-create-popup-in-html-with-css

How To Create A Popup in HTML with CSS

How to create popup in html with css – Popup without JavaScript is an elegant pop-up panel component with an animated scale, written in CSS. Have you…