question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AOS does not work with fullpage.js

See original GitHub issue
  • Question

Hi I’m experiencing an issue with AOS & fullpage.js. Both of them are loading with no errors but AOS does not show the content. I’m using:

https://alvarotrigo.com/fullPage/ & initing AOS after render of fullPage:

afterRender: AOS.init()

Is there any way to make this work?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

10reactions
reza-mamuncommented, Mar 25, 2020

This will trigger animations with every scroll:

new fullpage('.fullpage', {
    //.............................................
    //....Your other options....
    //..............................................
    onLeave: function(){
        jQuery('.section [data-aos]').removeClass("aos-animate");
    },
    onSlideLeave: function(){
        jQuery('.slide [data-aos]').removeClass("aos-animate");
    },
    afterSlideLoad: function(){
        jQuery('.slide.active [data-aos]').addClass("aos-animate");
    },
    afterLoad: function(){
        jQuery('.section.active [data-aos]').addClass("aos-animate");
       //jQuery('.fp-table.active .aos-init').addClass('aos-animate');
    }
});
9reactions
kayazcommented, Oct 10, 2019
afterLoad: function(){
	$('.fp-table.active .aos-init').addClass('aos-animate');
},
Read more comments on GitHub >

github_iconTop Results From Across the Web

fullpagejs and AOS - not working together - Stack Overflow
I'm using fullpagejs and AOS to make some divs popping up from the bottom of the page on scroll (or at least that's...
Read more >
Use fullpage.js with Wow.js animations - Alvaro Trigo
To fix this all you have to do is enable the scrollbar on fullPage.js by using the option scrollBar:true . This way fullPage.js...
Read more >
fullPage.js - GitHub Pages
fullPage.js is fully functional on all modern browsers, as well as some old ... It works with browsers with CSS3 support and with...
Read more >
Fullpage.js Lets solve this once and for all together!
Allowing webflow interactions to work with the Fullpage.js code there is a need to add callbacks within the custom code section. I have...
Read more >
AOS - animations - CodePen
Insecure Resource. The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found