svelte-fullpage.js
v1.0.5
Published
![](https://img.shields.io/github/size/nergel3/svelte-fullpage.js/src/index.svelte) ![](https://img.shields.io/npm/v/svelte-fullpage.js?color=green)
Downloads
2
Readme
Svelte-fullpage.js
Installation
npm install svelte-fullpage.js
Example
Live example here with source code
Basic example :
<script>
import Fullpage from 'svelte-fullpage.js';
const options = {
navigation: true,
responsiveWidth: 700,
anchors: ['home', 'about-us', 'contact'],
parallax: true,
onLeave: function(origin, destination, direction){
console.log("Leaving section" + origin.index);
}
}
</script>
<Fullpage {options}>
<div class="section">Section 1</div>
<div class="section">Section 2</div>
<div class="section">Section 3</div>
</Fullpage>
:stars: Show Your Support
Please give a :star: if this project helped you!
:scroll: License
GPLv3 © Alexandre Negrel