alvarotrigo / fullPage.js

fullPage plugin by Alvaro Trigo. Create full screen pages fast and simple
http://alvarotrigo.com/fullPage/
GNU General Public License v3.0
35.28k stars 7.29k forks source link

Add anchor to only specific sections #4228

Open johndp opened 3 years ago

johndp commented 3 years ago

Description

Added a data-anchor attribute to one of the section (no data-anchor to other sections), when scrolling to the said section with data-anchor, the navigation bullet doesn't set to active/current state.

Link to isolated reproduction with no external CSS / JS

https://jsfiddle.net/67x4tr10/

This issue is similar to this: https://github.com/alvarotrigo/fullPage.js/issues/4037

alvarotrigo commented 3 years ago

Anchors should be added to all sections or none of them. You can't add it only to one single section.

I'll mark this as a possible enhancement for future versions.