Git Product home page Git Product logo

nuxt-fullpage.js's People

Contributors

vaso2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nuxt-fullpage.js's Issues

Active class not being applied

Looking at the example code, the index in data is not being updated, neither are the sections getting an active class.

Not working after nuxt generate

Description

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>

nuxt.config

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
  ],
}
...

fullpage.js in plugin folder

import Vue from 'vue'
import Fullpage from 'vue-fullpage.js'
import 'fullpage.js/dist/fullpage.css'

Vue.use(Fullpage)

commands run

npm run generate
npm run start

options are coming [object object]

image

Versions

"nuxt": "^2.15.7",
"nuxt-fullpage.js": "0.0.3",

Default Nuxt production build issue

Description

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!

Link to isolated reproduction with no external CSS / JS

https://github.com/alexguevara/nuxt-fullpage-prod-bug

Steps to reproduce it

  1. npm run build
  2. npm run start
  3. Click on the button on the hero section

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

Versions

nuxt-fullpage.js: 0.0.3
vue-fullpage.js: ^0.1.4
nuxt: 2.9.2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.