vaso2 / nuxt-fullpage.js Goto Github PK
View Code? Open in Web Editor NEWNuxt module for fullPage.js library
License: GNU General Public License v3.0
Nuxt module for fullPage.js library
License: GNU General Public License v3.0
Looking at the example code, the index in data is not being updated, neither are the sections getting an active class.
after doing nuxt generate full-page is not working
<template>
<div>
<full-page :options="options" id="fullpage">
<div class="section">
<!-- <div class="Cell"> -->
<h3>Section 1</h3>
<!-- </div> -->
</div>
<div class="section">
<div class="slide">
<h3>Slide 2.1</h3>
</div>
<div class="slide">
<h3>Slide 2.2</h3>
</div>
<div class="slide">
<h3>Slide 2.3</h3>
</div>
</div>
<div class="section">
<h3>Section 3 !</h3>
</div>
</full-page>
</div>
</template>
<script>
export default {
layout: 'fullpage',
data () {
return {
options: {
licenseKey: 'api_key',
afterLoad: this.afterLoad,
scrollBar: false,
menu: '#menu',
navigation: true,
anchors: ['page1', 'page2', 'page3'],
sectionsColor: ['#41b883', '#ff5f45', '#0798ec', '#fec401', '#1bcee6', '#ee1a59', '#2c3e4f', '#ba5be9', '#b4b8ab']
}
}
},
methods: {
afterLoad () {
}
}
}
</script>
export default {
target: 'static',
loading: true,
.....
plugins: [
{ src: '~/plugins/fullpage', mode: 'client', ssr: false },
{ src: '~plugins/vue-carousel.js', ssr: false } // Vue Carousel
// { src: '~plugins/ga.js', ssr: false } // Google Analytics
],
}
...
import Vue from 'vue'
import Fullpage from 'vue-fullpage.js'
import 'fullpage.js/dist/fullpage.css'
Vue.use(Fullpage)
npm run generate
npm run start
"nuxt": "^2.15.7",
"nuxt-fullpage.js": "0.0.3",
When building Nuxt in production with default setup, vue-fullpage breaks on any dom change.
In development everything works fine so most likely its a production build configuration issue.
I`m absolutely stuck with it so maybe you could advise anything.
Thanks!
https://github.com/alexguevara/nuxt-fullpage-prod-bug
It seems that on every dom change fullpage removes its classes from section elements.
This happens only on production build.
See video for details:
https://www.loom.com/share/45ee7ef8a6c84550a65cb85246e81cd7
nuxt-fullpage.js: 0.0.3
vue-fullpage.js: ^0.1.4
nuxt: 2.9.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.