Problems with the fullpage.js slider
I have been stuck on this problem for hours and I cant seem to find my answer anywhere on the net... I am working on a vue-cli app, and I am using fullpage.js component with vue.js. I am attempting to create a landscape slider on one section. So far, I followed the instructions on this documentation:
https://github.com/alvarotrigo/fullPage.js#creating-links-to-sections-or-slides
but the slider does not work.
the following is my main.js:
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import BootstrapVue from 'bootstrap-vue'
import Carousel3d from 'vue-carousel-3d'
import VueFullPage from 'vue-fullpage.js'
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
import './assets/css/style.css';
Vue.config.productionTip = false
Vue.use(BootstrapVue);
Vue.use(Carousel3d);
Vue.use(VueFullPage);
/* eslint-disable no-new */
new Vue({
el: '#app',
components: { App },
template: '<App/>',
router,
store
})
the following is the vue component I am trying to use this feature on:
<template>
<full-page ref="fullpage" id="fullpage" class="Gallery">
<section class="section">
<div class="slide">
slide 1
</div>
<div class="slide">
slide 2
</div>
</section>
</full-page>
</template>
<script>
import { mapGetters } from 'vuex';
export default {
data(){
return {
half_of_images:Math.ceil(this.$store.state.images.length / 2),
images: this.$store.state.images,
options:{
licenseKey:null,
slidesNavigation: true
}
}
}
}
</script>
<style>
.col , .col > img{
padding:0px !important;
}
.col > img {
border: .5px solid white;
position:relative;
}
</style>
html node.js vue.js fullpage.js vue-cli
add a comment |
I have been stuck on this problem for hours and I cant seem to find my answer anywhere on the net... I am working on a vue-cli app, and I am using fullpage.js component with vue.js. I am attempting to create a landscape slider on one section. So far, I followed the instructions on this documentation:
https://github.com/alvarotrigo/fullPage.js#creating-links-to-sections-or-slides
but the slider does not work.
the following is my main.js:
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import BootstrapVue from 'bootstrap-vue'
import Carousel3d from 'vue-carousel-3d'
import VueFullPage from 'vue-fullpage.js'
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
import './assets/css/style.css';
Vue.config.productionTip = false
Vue.use(BootstrapVue);
Vue.use(Carousel3d);
Vue.use(VueFullPage);
/* eslint-disable no-new */
new Vue({
el: '#app',
components: { App },
template: '<App/>',
router,
store
})
the following is the vue component I am trying to use this feature on:
<template>
<full-page ref="fullpage" id="fullpage" class="Gallery">
<section class="section">
<div class="slide">
slide 1
</div>
<div class="slide">
slide 2
</div>
</section>
</full-page>
</template>
<script>
import { mapGetters } from 'vuex';
export default {
data(){
return {
half_of_images:Math.ceil(this.$store.state.images.length / 2),
images: this.$store.state.images,
options:{
licenseKey:null,
slidesNavigation: true
}
}
}
}
</script>
<style>
.col , .col > img{
padding:0px !important;
}
.col > img {
border: .5px solid white;
position:relative;
}
</style>
html node.js vue.js fullpage.js vue-cli
did you try to put this$('#fullpage').fullpage({ keyboardScrolling:false, scrollbar: false, scrollOverflow: false, autoScrolling:false, menu:true, slidesNavigation:true, slidesNavPosition: 'top', slideSelector: '.slide', }); $.fn.fullpage.setMouseWheelScrolling(false); $.fn.fullpage.setAllowScrolling(false);
inside themounted
hook of your app.vue
– Boussadjra Brahim
Sep 15 '18 at 19:49
@boussadjrabrahim it seems like it didnt cuange anything. The slide divs are appearing as sections underneath the parent section class.
– Christopher
Sep 17 '18 at 10:10
add a comment |
I have been stuck on this problem for hours and I cant seem to find my answer anywhere on the net... I am working on a vue-cli app, and I am using fullpage.js component with vue.js. I am attempting to create a landscape slider on one section. So far, I followed the instructions on this documentation:
https://github.com/alvarotrigo/fullPage.js#creating-links-to-sections-or-slides
but the slider does not work.
the following is my main.js:
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import BootstrapVue from 'bootstrap-vue'
import Carousel3d from 'vue-carousel-3d'
import VueFullPage from 'vue-fullpage.js'
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
import './assets/css/style.css';
Vue.config.productionTip = false
Vue.use(BootstrapVue);
Vue.use(Carousel3d);
Vue.use(VueFullPage);
/* eslint-disable no-new */
new Vue({
el: '#app',
components: { App },
template: '<App/>',
router,
store
})
the following is the vue component I am trying to use this feature on:
<template>
<full-page ref="fullpage" id="fullpage" class="Gallery">
<section class="section">
<div class="slide">
slide 1
</div>
<div class="slide">
slide 2
</div>
</section>
</full-page>
</template>
<script>
import { mapGetters } from 'vuex';
export default {
data(){
return {
half_of_images:Math.ceil(this.$store.state.images.length / 2),
images: this.$store.state.images,
options:{
licenseKey:null,
slidesNavigation: true
}
}
}
}
</script>
<style>
.col , .col > img{
padding:0px !important;
}
.col > img {
border: .5px solid white;
position:relative;
}
</style>
html node.js vue.js fullpage.js vue-cli
I have been stuck on this problem for hours and I cant seem to find my answer anywhere on the net... I am working on a vue-cli app, and I am using fullpage.js component with vue.js. I am attempting to create a landscape slider on one section. So far, I followed the instructions on this documentation:
https://github.com/alvarotrigo/fullPage.js#creating-links-to-sections-or-slides
but the slider does not work.
the following is my main.js:
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import BootstrapVue from 'bootstrap-vue'
import Carousel3d from 'vue-carousel-3d'
import VueFullPage from 'vue-fullpage.js'
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
import './assets/css/style.css';
Vue.config.productionTip = false
Vue.use(BootstrapVue);
Vue.use(Carousel3d);
Vue.use(VueFullPage);
/* eslint-disable no-new */
new Vue({
el: '#app',
components: { App },
template: '<App/>',
router,
store
})
the following is the vue component I am trying to use this feature on:
<template>
<full-page ref="fullpage" id="fullpage" class="Gallery">
<section class="section">
<div class="slide">
slide 1
</div>
<div class="slide">
slide 2
</div>
</section>
</full-page>
</template>
<script>
import { mapGetters } from 'vuex';
export default {
data(){
return {
half_of_images:Math.ceil(this.$store.state.images.length / 2),
images: this.$store.state.images,
options:{
licenseKey:null,
slidesNavigation: true
}
}
}
}
</script>
<style>
.col , .col > img{
padding:0px !important;
}
.col > img {
border: .5px solid white;
position:relative;
}
</style>
html node.js vue.js fullpage.js vue-cli
html node.js vue.js fullpage.js vue-cli
edited Sep 17 '18 at 23:52
Christopher
asked Sep 15 '18 at 17:21
ChristopherChristopher
306
306
did you try to put this$('#fullpage').fullpage({ keyboardScrolling:false, scrollbar: false, scrollOverflow: false, autoScrolling:false, menu:true, slidesNavigation:true, slidesNavPosition: 'top', slideSelector: '.slide', }); $.fn.fullpage.setMouseWheelScrolling(false); $.fn.fullpage.setAllowScrolling(false);
inside themounted
hook of your app.vue
– Boussadjra Brahim
Sep 15 '18 at 19:49
@boussadjrabrahim it seems like it didnt cuange anything. The slide divs are appearing as sections underneath the parent section class.
– Christopher
Sep 17 '18 at 10:10
add a comment |
did you try to put this$('#fullpage').fullpage({ keyboardScrolling:false, scrollbar: false, scrollOverflow: false, autoScrolling:false, menu:true, slidesNavigation:true, slidesNavPosition: 'top', slideSelector: '.slide', }); $.fn.fullpage.setMouseWheelScrolling(false); $.fn.fullpage.setAllowScrolling(false);
inside themounted
hook of your app.vue
– Boussadjra Brahim
Sep 15 '18 at 19:49
@boussadjrabrahim it seems like it didnt cuange anything. The slide divs are appearing as sections underneath the parent section class.
– Christopher
Sep 17 '18 at 10:10
did you try to put this
$('#fullpage').fullpage({ keyboardScrolling:false, scrollbar: false, scrollOverflow: false, autoScrolling:false, menu:true, slidesNavigation:true, slidesNavPosition: 'top', slideSelector: '.slide', }); $.fn.fullpage.setMouseWheelScrolling(false); $.fn.fullpage.setAllowScrolling(false);
inside the mounted
hook of your app.vue– Boussadjra Brahim
Sep 15 '18 at 19:49
did you try to put this
$('#fullpage').fullpage({ keyboardScrolling:false, scrollbar: false, scrollOverflow: false, autoScrolling:false, menu:true, slidesNavigation:true, slidesNavPosition: 'top', slideSelector: '.slide', }); $.fn.fullpage.setMouseWheelScrolling(false); $.fn.fullpage.setAllowScrolling(false);
inside the mounted
hook of your app.vue– Boussadjra Brahim
Sep 15 '18 at 19:49
@boussadjrabrahim it seems like it didnt cuange anything. The slide divs are appearing as sections underneath the parent section class.
– Christopher
Sep 17 '18 at 10:10
@boussadjrabrahim it seems like it didnt cuange anything. The slide divs are appearing as sections underneath the parent section class.
– Christopher
Sep 17 '18 at 10:10
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52347106%2fproblems-with-the-fullpage-js-slider%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52347106%2fproblems-with-the-fullpage-js-slider%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
did you try to put this
$('#fullpage').fullpage({ keyboardScrolling:false, scrollbar: false, scrollOverflow: false, autoScrolling:false, menu:true, slidesNavigation:true, slidesNavPosition: 'top', slideSelector: '.slide', }); $.fn.fullpage.setMouseWheelScrolling(false); $.fn.fullpage.setAllowScrolling(false);
inside themounted
hook of your app.vue– Boussadjra Brahim
Sep 15 '18 at 19:49
@boussadjrabrahim it seems like it didnt cuange anything. The slide divs are appearing as sections underneath the parent section class.
– Christopher
Sep 17 '18 at 10:10