0.1.3 • Published 1 year ago

flowpage v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Flowpage

Description

It is a package to automatically scroll to sections with optional plugins.

NavPlugin: Generates a navbar and switches to active when the user is on the section. TouchPlugin: Supports drag and drop on pc and touch on phone.

| How install ?

pnpm i flowpage
npm i flowpage
yarn add flowpage

| How use ?

<div id="fullpage">
  <div class="section" id="section-1">
    <h1>Section 1</h1>
  </div>
  <div class="section" id="section-2">
    <h1>Section 2</h1>
  </div>
  <div class="section" id="section-3">
    <h1>Section 3</h1>
  </div>
</div>

the id on the .section class will be used to change the url

ìmport { Flowpage } from 'flowpage'
new Flowpage('#fullpage', { nav: true, touch: true })