nuxt-fullpage.js

Nuxt module for fullpage.js library
1,880 23
Install
npm install nuxt-fullpage.js
Latest Version:0.0.3
License:GPL-3.0
Last Updated:Feb 4, 2019
Links: GitHub  ·  npm
Maintainer: vaso2

nuxt-fullpage.js

npm version npm downloads

Nuxt module for fullpage.js library with official vue wrapper

📖 Release Notes

Setup

  • Add nuxt-fullpage.js dependency using yarn or npm to your project
  • Add nuxt-fullpage.js to modules section of nuxt.config.js
{
  modules: [
    // Simple usage
    'nuxt-fullpage.js',

    // With options
    ['nuxt-fullpage.js', { /* module options */ }],
 ]
}

Usage

This plugin creates a <full-page> component, used with ssr: false option. It's done because of window usage by core Fullpage plugin. This won't be fixed, as you can read in this Github issue. There is two points to notice: css classes will be applied only at client side and you will get warning in the console saying:

[Vue warn]: https://github.com/vaso2/nuxt-fullpage.js/blob/HEAD/The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.

You can safely ignore this warning, but you might want to mitigate load flicker between your server and client versions of markup. For this you can apply css classes on server like this, they'll be replaced as soon as fullpage.js kicks in:

<full-page :options="options" id="fullpage">
    <div class="section fp-table active">
        <div class="fp-tableCell">
            <h3>Section 1</h3>
        </div>
    </div>
    <div class="section">
        ...
    </div>
</full-page>

You can find more details under example folder. Otherwise this fullpage module is excellent, have fun!

License

GPL-3.0, made by GALSD Web Development

Related Packages

nuxt-anchorscroll

Scroll with anchor support for Nuxt

90,584 8
fullpage-nuxt

Nuxt module for fullpage-vue plugin

1,600 24
nuxt-render-on-scroll

A Vue/Nuxt component that allows you to lazily render components only when they...

881 6
@lionad/use-scrollbar-nuxt

Nuxt module for @lionad/use-scrollbar: auto-imports composables and injects scro...

470 14
@scayle/storefront-nuxt

Nuxt integration for the SCAYLE Commerce Engine and Storefront API

152,903

Version History

Version Released License
0.0.3 GPL-3.0
0.0.2 MIT
0.0.1 MIT