Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fullpage-pagination

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fullpage-pagination

JS plugin for making fullpage pagination

  • 1.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

fullpage-pagination

Example

  • Codesandbox

Install

npm i fullpage-pagination -D
<div class="fullpage">
  <div class="fullpage__inner js-fullpage">
    <div class="fullpage__section" data-fullpage-id="section-1">section-1</div>
    <div class="fullpage__section" data-fullpage-id="section-2">section-2</div>
    <div class="fullpage__section" data-fullpage-id="section-3">section-3</div>
    <div class="fullpage__section" data-fullpage-id="section-4">section-4</div>
    <div class="fullpage__section" data-fullpage-id="section-5">section-5</div>
  </div>   
</div>

<!-- anchor -->
<button data-fullpage-anchor="section-3">button anchor to section 3</button>

<!-- anchor from another page -->
<a href="#section-3">link anchor to section 3 from another page</a>
import { Fullpage, addTouchEvents } from 'fullpage-pagination';
addTouchEvents();

const page = document.querySelector('.js-fullpage');
const options = {
  // some options
};

const fullpage = new Fullpage(page, options);
fullpage.init();

Options

Standart options

{
  transition: 500, // slide transition in miliseconds
  easing: 'ease', // slide transition easing
  navigation: false, // html nav container
  renderNavButton: false, // (i) => { // return button html }
  prevButton: false, // prev button html element
  nextButton: false, // next button html element
  fadeIn: false, // fade effect
  fadeInDuration: 500, // fade effect duration
  customTransition: false, // no effects, just toggle active classnames
  touchevents: false, // pagination on touchevents
  loop: false, // loop option
  toggleClassesFirst: false // if true - toggle sections classes before animation
}

Events

fullpage.afterLoad = () => {
  // some callback
};
fullpage.onExit = (section, resolve) => {
  // some callback
};
fullpage.onEnter = (section, resolve) => {
  // some callback
};
fullpage.onComplete = () => {
  // some callback
};

Keywords

FAQs

Package last updated on 18 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc