Can anyone with experience using fullpage.js in Webflow help me troubleshoot issues with left/right navigation arrows, triggering animations, and creating a "current" state for slide links? Thank you!

TL;DR
  • Check that fullpage.js is initialized correctly, arrows are visible in CSS, and event listeners are set for navigation. 
  • Ensure unique IDs for sections/slides and use fullpage.js callbacks to trigger animations. 
  • Define .active styles, synchronize link states with callbacks, and manually update link states using JavaScript if needed.

Experiencing issues with Fullpage.js in Webflow related to navigation arrows, animations, and slide link states is a common challenge. Let's address these concerns.

1. Fixing Left/Right Navigation Arrows

  • Check Initialization: Ensure fullpage.js is initialized correctly. Verify the script is linked in the "Custom Code" section of your Project Settings.
  • Arrow Visibility: Ensure CSS doesn't hide the arrows. Check styles in both the slider component and any custom code.
  • Event Listeners: Confirm that event listeners for arrow interactions are correctly set up in the script.

2. Triggering Animations

  • Section/Slide IDs: Make sure each section or slide element has a unique ID required by fullpage.js.
  • Animate on Load: Attach animation triggers to slide events (e.g., afterSlideLoad or onSlideLeave).
  • JavaScript Callbacks: Use fullpage.js's callback functions to trigger animations. Define animations within these callbacks.

3. Creating a "Current" State for Slide Links

  • Active State Style: Define a style for the .active class in your CSS.
  • Link Synchronization: Use the afterSlideLoad callback to add and remove active states from slide links dynamically.
  • Manual State Update: If issues persist, implement manual update logic using JavaScript to alter classes based on the current slide.

Summary

Ensure fullpage.js is set up correctly and that CSS, initialization, and JavaScript callbacks are appropriate for your requirements. This will assist with navigation arrows, animation triggering, and maintaining active states for links.

Rate this answer

Other Webflow Questions