@xy.dev/fullpage-scroll

0.0.3 • Public • Published

fullpage-scroll

A simple and lightweight JavaScript library for fullpage scrolling.

Install

npm install @xy.dev/fullpage-scroll@0.0.1

Usage

// Vue
<script>
import FullPageScroll from '@xy.dev/fullpage-scroll';

export default {
  name: 'App',
  mounted() {
    const sections = document.querySelectorAll('.section');
    new FullPageScroll(sections);
  }
}
</script>
// React
import { useEffect } from 'react';
import SectionScroll from '@xy.dev/section-scroll';

function App() {
  useEffect(() => {
    const sections = document.querySelectorAll('.section');
    new FullPageScroll(sections);
  }, []);

   return (
    <section></section>
  );
}

Readme

Keywords

none

Package Sidebar

Install

npm i @xy.dev/fullpage-scroll

Weekly Downloads

0

Version

0.0.3

License

ISC

Unpacked Size

2.58 kB

Total Files

3

Last publish

Collaborators

  • xy.dev