fullPage.js icon indicating copy to clipboard operation
fullPage.js copied to clipboard

What about SMALLsectionsDestination?

Open skobe opened this issue 7 years ago • 4 comments

Hi there,

I need a menu anchor to land at the top of an smaller section (fp-auto-height).

This is my setup

As you can see (coming from the top) the section TWO lands at the bottom of the screen.

I found the bigSectionsDestination option but is possible to have that same option for smaller sections?

Thanks in advance, Jesko

skobe avatar Jul 18 '17 11:07 skobe

There's no such option at the moment I'm afraid. It might be difficult to deal with it in case you have multiple small section one after the other. We would have somehow to see if we can scroll them or not depending in how much space the rest would take in the viewport.

alvarotrigo avatar Jul 18 '17 15:07 alvarotrigo

Thank you for your quick response and for the info. I ended up removing the data-menuanchor from the concerning menu-item and writing my own scrollto function for that particular section which is triggered by clicking on the <li>. I updated the fiddle accordingly: http://jsfiddle.net/skobe/kak1x5nw/3/ in case someone has the same problem.

skobe avatar Jul 20 '17 19:07 skobe

hi @alvarotrigo i have a similar problem, i don't understand exactly similar or no , i have multiple different smaller height section and i want when a user scroll down, then top of section tangent set to bottom of my fixed menu and i don't want go to behind of my fixed menu. but in now, bottom of section set to bottom of viewport of browser and other section go to behind of my fixed menu. is there anyway?

saman222 avatar Oct 25 '22 08:10 saman222

@saman222 its a different issue, but the answer is no in any case. Duplicated of https://github.com/alvarotrigo/fullPage.js/issues/2785.

alvarotrigo avatar Oct 25 '22 10:10 alvarotrigo