Webflow sync, pageviews & more.
NEW

Why isn't the Fading Effect of the fullPage.js code from GitHub working on my Webflow project?

TL;DR
  • Include correct fullPage.js v4 CSS/JS via CDN in Webflow's custom code section.
  • Initialize fullPage.js with fadingEffect: true in the new fullpage() call and ensure the wrapper has ID fullpage with section class for children.
  • Disable Webflow’s smooth scroll and set overflow: hidden on html/body to avoid conflicts.
  • Check for additional fadingEffect plugin if using older versions, and inspect the console for errors or missing files.

If the Fading Effect from fullPage.js isn't working in your Webflow project, the issue is likely due to incorrect library setup, missing initialization options, or Webflow conflicting with the plugin. Here's how to troubleshoot and fix it.

1. Verify Proper Library Inclusion

  • Ensure both fullPage.js and fullPage.css are loaded. You can add them via the Page Settings → Custom Code → Head/Before Body section.
  • For fullPage.js v4 (the latest), include the official CDN links:
  • CSS: https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/4.0.20/fullpage.min.css
  • JS: https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/4.0.20/fullpage.min.js
  • Make sure you’re not including an outdated or mixed version (v2 vs v3 vs v4), especially if following an old GitHub example.

2. Initialize fullPage.js with Fading Option

  • In your Before custom code section, properly initialize the library with the fading effect.
  • Add the key option: fadingEffect: true and include it in the plugin settings:
  • Example: new fullpage('#fullpage', { fadingEffect: true, licenseKey: 'YOUR_KEY' });
  • Confirm that #fullpage is the ID of your main container in Webflow.

3. Confirm Required HTML Structure

  • fullPage.js expects a specific structure:
  • A wrapper div with ID #fullpage.
  • Child divs with class section.
  • In Webflow, ensure:
  • The parent wrapper has ID fullpage (set in the Element Settings panel).
  • Each full-page section has the class section.

4. Add Dependencies for Fading Effect Plugin (if required)

  • The fading effect in some versions of fullPage.js uses an additional module.
  • If you're on v3 or using an external GitHub extension, you may need to include the fadingEffect.min.js plugin.
  • Check the GitHub repo readme or docs—some effects are separate from the core file.

5. Disable Webflow's Scroll Behavior

  • Webflow adds its own smooth scrolling and overflow settings that can conflict with fullPage.js.
  • Tips:
  • Turn off Smooth Scroll from Project Settings (if using Webflow interactions).
  • Ensure the Body and html elements have overflow: hidden, particularly for fullPage.js to control scroll behavior.
  • Avoid using Webflow’s native scroll-based interactions on fullpage sections.

6. Check Console for Errors

  • Open your browser’s Developer Console.
  • Look for missing files, licensing errors (e.g., if using without a license in a production project), or undefined references, especially to fullpage.

7. Test Without Other Interactions

  • Temporarily remove other Webflow interactions or animations to isolate the issue.
  • Webflow’s scroll animations can interrupt fullPage.js’s JavaScript-based transitions.

Summary

To fix a non-working Fading Effect from fullPage.js in Webflow, confirm you’re loading the correct version, initializing it with fadingEffect: true, using the required HTML structure, and disabling conflicting Webflow features like smooth scroll or overflow settings. Check the console for errors or missing dependencies.

Rate this answer

Other Webflow Questions